let dayData = {
    "date": "2023-04-19",
    "user_name": "Rafael",
    "deep_sleep_duration": 132.0,
    "shallow_sleep_duration": 228.0,
    "clear_duration": 2.0,
    "left_bed_duration": 72.0,
    "left_bed_time": 5.0,
    "sleep_duration": 434.0,
    "sleep_time": "2023-04-19 22:33:00",
    "wake_time": "2023-04-20 05:47:00",
    "sleep_stage": "2023-04-19 22:33:00|2,2023-04-19 22:43:00|1,2023-04-19 22:57:00|2,2023-04-19 22:59:00|1,2023-04-19 23:33:00|2,2023-04-19 23:35:00|1,2023-04-19 23:37:00|2,2023-04-19 23:39:00|1,2023-04-19 23:43:00|2,2023-04-19 23:51:00|1,2023-04-19 23:53:00|2,2023-04-19 23:55:00|1,2023-04-19 23:57:00|2,2023-04-20 00:01:00|3,2023-04-20 00:19:00|2,2023-04-20 00:21:00|1,2023-04-20 00:23:00|2,2023-04-20 00:25:00|1,2023-04-20 00:37:00|2,2023-04-20 00:39:00|1,2023-04-20 00:43:00|2,2023-04-20 00:45:00|1,2023-04-20 00:47:00|2,2023-04-20 01:03:00|3,2023-04-20 01:17:00|1,2023-04-20 01:21:00|2,2023-04-20 01:23:00|1,2023-04-20 01:35:00|2,2023-04-20 01:41:00|1,2023-04-20 01:51:00|2,2023-04-20 01:53:00|1,2023-04-20 02:11:00|2,2023-04-20 02:13:00|1,2023-04-20 02:15:00|2,2023-04-20 02:19:00|1,2023-04-20 02:27:00|2,2023-04-20 02:33:00|3,2023-04-20 02:43:00|2,2023-04-20 03:37:00|3,2023-04-20 03:41:00|2,2023-04-20 04:21:00|0,2023-04-20 04:23:00|2,2023-04-20 04:33:00|3,2023-04-20 04:59:00|2,2023-04-20 05:47:00|3",
    "turnover_times": 44,
    "heart_pattern": 1,
    "recover_degree": 4,
    "fatigue_degree": 2,
    "anomaly_result": 0,
    "hrv_result": 0,
    "fatigue_tip": "昨天身体较为舒适，请继续保持！",
    "recover_tip": "睡得不错哦，生活再忙碌，也要留一点时间去运动！",
    "hrv_tip": "无异常",
    "anomaly_tip": "无异常",
    "sdnn": 72.0,
    "rmssd": 43.0,
    "msd": 31.0,
    "sdsd": 29.0,
    "triangular_index": 0.0,
    "pnn50": 0.23,
    "vlf": 7.91,
    "lf": 7.5,
    "hf": 4.33,
    "lfhf": 1.73,
    "long_term_rr_quality_signal": 0,
    "sleep_efficiency": 0.748,
    "left_bed_abnormal": -1,
    "breath_biggest_limit": 0.0,
    "breath_smallest_limit": 0.0,
    "heart_biggest_limit": 0.0,
    "heart_smallest_limit": 0.0,
    "hrv_abnormal_flag": "{'Kmeans': 0, 'DBScan': 0, 'Isolation_Forest': 0, 'SDNN': 0, 'pNN_50': 0}",
    "hrv_continuous_abnormal": 0,
    "hrv_limits": "{}",
    "deceleration_capacity": 13.374,
    "rr_quality_average": 0.75,
    "rr_quality_stage": "[0.309, 0.199, 0.492]",
    "rr_quality_abnormal": 0,
    "long_interval_counts": 9,
    "sleep_status": 1,
    "anti_snore_times": 0,
    "anti_snore_stage": "[]",
    "all_day_abnormal": 0,
    "abnormal_flag": "[3, 8, 9]",
    "institution_show_flag": 0,
    "compare_sleep_duration": 2.0,
    "sleep_grade": 90.0,
    "sleep_grade_ten_day_stage": [
        89.0,
        89.0,
        89.0,
        89.0,
        89.0,
        89.0,
        89.0
    ],
    "compare_sleep_grade": 0,
    "twitch_times": 35,
    "twitch_abnormal_explain": "",
    "twitch_abnomal_advice": "",
    "compare_twitch_times": 1,
    "compare_sleep_efficiency": 1,
    "sleep_efficiency_abnormal_explain": "Sleep efficiency is the ratio of the user's sleep time to the total length of the bed. This value is affected by your bedtime activities and sleeping time. If you spend too much time reading in bed, playing with your mobile phone or sleeping for too long, the value will become lower.",
    "sleep_efficiency_abnormal_advice": "Listen to bedtime music to help you sleep, and reduce or stop drinking caffeinated beverages.",
    "avg_heart_rate": 61,
    "avg_heart_rate_abnormal_explain": "",
    "avg_heart_rate_abnormal_advice": "",
    "avg_heart_rate_ten_day": 61,
    "avg_heart_rate_ten_day_stage": [
        61,
        61,
        61,
        61,
        61,
        61,
        61
    ],
    "compare_avg_heart_rate": 0,
    "heart_rate_stage": "[68, 65, 68, 66, 66, 65, 65, 65, 63, 63, 62, 64, 64, 64, 65, 68, 62, 62, 62, 62, 62, 61, 61, 60, 59, 60, 65, 67, 58, 58, 58, 58, 60, 61, 59, 59, 59, 59, 59, 59, 59, 59, 60, 58, 59, 61, 61, 60, 60, 62, 60, 61, 60, 60, 60, 58, 59, 60, 60, 60, 61, 58, 58, 60, 60, 59, 60, 59, 61, 61, 59, 59, 59, 59, 59, 59, 59, 57, 57, 59, 60, 59, 59, 56, 57, 58, 57]",
    "fatigue_degree_abnormal_explain": "",
    "fatigue_degree_abnormal_advice": "",
    "compare_fatigue_degree": 1,
    "compare_recover_degree": 0,
    "long_interval_counts_ten_day_stage": [
        9,
        9,
        9,
        9,
        9,
        9,
        9
    ],
    "avg_breath_rate": 14,
    "avg_breath_rate_abnormal_explain": "",
    "avg_breath_rate_abnormal_advice": "",
    "avg_breath_rate_ten_day": 14,
    "avg_breath_rate_ten_day_stage": [
        14,
        14,
        14,
        14,
        14,
        14,
        14
    ],
    "compare_avg_breath_rate": 0,
    "breath_rate_stage": "[16, 14, 14, 14, 14, 14, 15, 15, 15, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 16, 14, 14, 14, 14, 13, 14, 15, 15, 15, 16, 15, 15, 16, 16, 16, 15, 13, 13, 13, 19, 19, 14, 12, 13, 13, 14, 14, 14, 14, 14, 14, 13, 15, 16, 12, 16, 14, 13, 13, 14, 13, 17, 13, 13, 13, 13, 13, 13, 13, 16, 13, 13, 14, 15, 14, 14, 14, 14, 12]",
    "compare_anti_snore_times": 2,
    "anti_snore_times_ten_day_stage": [
        1,
        1,
        1,
        1,
        1,
        1,
        1
    ],
    "snore_times": 34,
    "compare_snore_times": 2,
    "snore_abnormal_explain": "The smart bed detects that you snore heavily, which can disrupt your partner's sleep and possibly cause apnea.",
    "snore_abnormal_advice": "It is recommended to turn on the snoring intervention function. When snoring is detected, the head of the bed can be lifted automatically to help stop snoring.",
    "snore_times_tend_day": 38,
    "snore_times_tend_day_stage": [
        38,
        38,
        38,
        38,
        38,
        38,
        38
    ],
    "sdnn_ten_day_stage": [
        67.0,
        67.0,
        67.0,
        67.0,
        67.0,
        67.0,
        67.0
    ],
    "sdnn_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "sdnn_abnormal_flag_ten_day_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_ten_day_stage": [
        37.0,
        37.0,
        37.0,
        37.0,
        37.0,
        37.0,
        37.0
    ],
    "rmssd_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_abnormal_flag_ten_day_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_ten_day_stage": [
        0.16,
        0.16,
        0.16,
        0.16,
        0.16,
        0.16,
        0.16
    ],
    "pnn50_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_abnormal_flag_ten_day_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_ten_day_stage": [
        1.59,
        1.59,
        1.59,
        1.59,
        1.59,
        1.59,
        1.59
    ],
    "lfhf_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_abnormal_flag_ten_day_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "sleep_duration_ten_day_stage": [
        470.0,
        470.0,
        470.0,
        470.0,
        470.0,
        470.0,
        470.0
    ],
    "sleep_efficiency_ten_day_stage": [
        0.733,
        0.733,
        0.733,
        0.733,
        0.733,
        0.733,
        0.733
    ],
    "heart_rate_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "breath_rate_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "snore_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "twitch_abnormal_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "sleep_efficiency_abnormal_flag": [
        1,
        1,
        1,
        1,
        1,
        1,
        1
    ],
    "fatigue_degree_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "fitness_explain": "Did you sleep soundly? You had fewer snoring occurences.",
    "is_exist_sleep_report": 1,
    "sleep_date": true,
    "select_bed": false
}
let weekData = {
    "user_name": "Rafael",
    "twitch_times_stage": [
        48,
        36,
        30,
        33,
        56,
        37,
        35
    ],
    "twitch_times": 275,
    "sleep_duration": 3208,
    "deep_sleep_duration": 968,
    "avg_deep_sleep_duration": 138,
    "avg_shallow_sleep_duration": 274,
    "avg_heart_rate": 60,
    "avg_breath_rate": 14,
    "avg_snore_times": 89,
    "deep_sleep_durations": [
        152,
        138,
        118,
        140,
        146,
        142,
        132
    ],
    "shallow_sleep_durations": [
        352,
        318,
        226,
        288,
        268,
        242,
        228
    ],
    "clear_durations": [
        2,
        4,
        48,
        34,
        70,
        86,
        74
    ],
    "shallow_sleep_duration": 1922,
    "clear_duration": 20,
    "left_bed_duration": 298,
    "sleep_time": "22:50:51",
    "sleep_time_stage": [
        "2023-04-13 22:20:00"
    ],
    "wake_time": "06:29:08",
    "wake_time_stage": [
        "2023-04-14 06:46:00",
        "2023-04-15 06:46:00",
        "2023-04-16 05:55:00",
        "2023-04-17 06:38:00",
        "2023-04-18 06:46:00",
        "2023-04-19 06:46:00",
        "2023-04-20 05:47:00"
    ],
    "sleep_grade": 632,
    "avg_sleep_grage": 90,
    "sleep_duration_last_month": 3432,
    "deep_sleep_duration_last_month": 1036,
    "shallow_sleep_duration_last_month": 2372,
    "clear_duration_last_month": 10,
    "left_bed_duration_last_month": 14,
    "sleep_time_last_month": "22:08:00",
    "wake_time_last_month": "06:18:17",
    "sleep_grade_last_month": 671,
    "avg_sleep_grage_last_month": 95,
    "heart_rate_stage": [
        65,
        58,
        60,
        57,
        60,
        61,
        61
    ],
    "left_bed_times": [
        0,
        0,
        1,
        2,
        1,
        4,
        5
    ],
    "left_bed_time": 2,
    "heart_rate_abnormal_flag": [
        1,
        1,
        0,
        0,
        0,
        0,
        0
    ],
    "heart_biggest_limit": 0.0,
    "heart_smallest_limit": 0.0,
    "long_interval_counts_stage": [
        25,
        9,
        6,
        19,
        21,
        9,
        9
    ],
    "breath_rate_stage": [
        14,
        14,
        14,
        14,
        14,
        14,
        14
    ],
    "breath_rate_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "breath_biggest_limit": 0.0,
    "breath_smallest_limit": 0.0,
    "snore_times_stage": [
        244,
        91,
        78,
        15,
        128,
        38,
        34
    ],
    "anti_snore_times_stage": [
        4,
        2,
        1,
        0,
        2,
        1,
        0
    ],
    "snore_abnormal_flag": [
        0,
        0,
        0,
        1,
        0,
        0,
        1
    ],
    "sdnn_stage": [
        92,
        110,
        61,
        63,
        70,
        67,
        72
    ],
    "sdnn_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "sdnn_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_stage": [
        55,
        57,
        44,
        45,
        44,
        37,
        43
    ],
    "rmssd_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_stage": [
        0.31,
        0.32,
        0.25,
        0.21,
        0.21,
        0.16,
        0.23
    ],
    "pnn50_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_stage": [
        0.88,
        0.79,
        1.19,
        1.26,
        1.15,
        1.59,
        1.73
    ],
    "lfhf_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "date": [
        "2023-04-14",
        "2023-04-15",
        "2023-04-16",
        "2023-04-17",
        "2023-04-18",
        "2023-04-19",
        "2023-04-20"
    ],
    "sleep_duration_week": [
        {
            "date": "2023-04-14",
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 352,
            "clear_duration": 2,
            "avg_heart_rate": 65,
            "anti_snore_times": 4,
            "turnover_times": 71,
            "twitch_times": 48,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-15",
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 318,
            "clear_duration": 4,
            "avg_heart_rate": 58,
            "anti_snore_times": 2,
            "turnover_times": 44,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-16",
            "deep_sleep_duration": 118,
            "shallow_sleep_duration": 226,
            "clear_duration": 48,
            "avg_heart_rate": 60,
            "anti_snore_times": 1,
            "turnover_times": 41,
            "twitch_times": 30,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-17",
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 288,
            "clear_duration": 34,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 63,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-18",
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 268,
            "clear_duration": 70,
            "avg_heart_rate": 60,
            "anti_snore_times": 2,
            "turnover_times": 50,
            "twitch_times": 56,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-19",
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 242,
            "clear_duration": 86,
            "avg_heart_rate": 61,
            "anti_snore_times": 1,
            "turnover_times": 48,
            "twitch_times": 37,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-20",
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 228,
            "clear_duration": 74,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 44,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        }
    ],
    "sleep_duration_month": [],
    "sleep_date": true
}
let monthData = {
    "user_name": "Rafael",
    "twitch_times_stage": [
        58,
        40,
        36,
        37,
        44,
        26,
        23,
        41,
        35,
        40,
        45,
        24,
        84,
        26,
        35,
        46,
        47,
        37,
        35,
        32,
        73,
        48,
        28,
        44,
        48,
        36,
        30,
        33,
        56,
        37,
        35
    ],
    "twitch_times": 1259,
    "sleep_duration": 15702,
    "deep_sleep_duration": 4736,
    "avg_deep_sleep_duration": 152,
    "avg_shallow_sleep_duration": 341,
    "avg_heart_rate": 61,
    "avg_breath_rate": 13,
    "avg_snore_times": 211,
    "deep_sleep_durations": [
        166,
        160,
        162,
        158,
        170,
        136,
        120,
        162,
        168,
        152,
        168,
        142,
        200,
        142,
        164,
        180,
        166,
        168,
        150,
        112,
        176,
        160,
        138,
        148,
        152,
        138,
        118,
        140,
        146,
        142,
        132
    ],
    "shallow_sleep_durations": [
        380,
        368,
        374,
        366,
        394,
        310,
        274,
        372,
        388,
        352,
        388,
        326,
        456,
        328,
        382,
        416,
        380,
        390,
        346,
        254,
        402,
        372,
        310,
        336,
        352,
        318,
        226,
        288,
        268,
        242,
        228
    ],
    "clear_durations": [
        2,
        2,
        2,
        0,
        2,
        2,
        2,
        2,
        2,
        2,
        2,
        0,
        10,
        2,
        0,
        4,
        2,
        2,
        2,
        4,
        6,
        0,
        6,
        4,
        2,
        4,
        48,
        34,
        70,
        86,
        74
    ],
    "shallow_sleep_duration": 10586,
    "clear_duration": 54,
    "left_bed_duration": 326,
    "sleep_time": "22:23:19",
    "sleep_time_stage": [
        "2023-03-20 21:36:00",
        "2023-03-27 21:43:00",
        "2023-04-03 21:40:00",
        "2023-04-10 21:43:00"
    ],
    "wake_time": "06:49:50",
    "wake_time_stage": [
        "2023-03-21 06:44:00",
        "2023-03-22 06:45:00",
        "2023-03-23 06:45:00",
        "2023-03-24 06:29:00",
        "2023-03-25 06:46:00",
        "2023-03-26 09:52:00",
        "2023-03-27 06:13:00",
        "2023-03-28 06:39:00",
        "2023-03-29 06:24:00",
        "2023-03-30 06:44:00",
        "2023-03-31 06:45:00",
        "2023-04-01 06:46:00",
        "2023-04-02 09:45:00",
        "2023-04-03 06:41:00",
        "2023-04-04 06:46:00",
        "2023-04-05 09:29:00",
        "2023-04-06 06:45:00",
        "2023-04-07 06:41:00",
        "2023-04-08 06:46:00",
        "2023-04-09 03:43:00",
        "2023-04-10 06:46:00",
        "2023-04-11 06:35:00",
        "2023-04-12 06:45:00",
        "2023-04-13 06:47:00",
        "2023-04-14 06:46:00",
        "2023-04-15 06:46:00",
        "2023-04-16 05:55:00",
        "2023-04-17 06:38:00",
        "2023-04-18 06:46:00",
        "2023-04-19 06:46:00",
        "2023-04-20 05:47:00"
    ],
    "sleep_grade": 2951,
    "avg_sleep_grage": 95,
    "sleep_duration_last_month": 12084,
    "deep_sleep_duration_last_month": 3646,
    "shallow_sleep_duration_last_month": 8366,
    "clear_duration_last_month": 52,
    "left_bed_duration_last_month": 20,
    "sleep_time_last_month": "22:34:04",
    "wake_time_last_month": "06:37:26",
    "sleep_grade_last_month": 2410,
    "avg_sleep_grage_last_month": 96,
    "heart_rate_stage": [
        57,
        61,
        62,
        61,
        61,
        64,
        60,
        59,
        60,
        59,
        62,
        61,
        60,
        59,
        62,
        61,
        62,
        61,
        62,
        63,
        65,
        65,
        63,
        65,
        65,
        58,
        60,
        57,
        60,
        61,
        61
    ],
    "left_bed_times": [
        0,
        1,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        2,
        1,
        0,
        0,
        1,
        2,
        1,
        4,
        5
    ],
    "left_bed_time": 1,
    "heart_rate_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        0,
        0,
        0,
        0,
        0
    ],
    "heart_biggest_limit": 0.0,
    "heart_smallest_limit": 0.0,
    "long_interval_counts_stage": [
        50,
        33,
        12,
        35,
        41,
        15,
        7,
        35,
        63,
        20,
        33,
        16,
        6,
        1,
        29,
        46,
        49,
        28,
        9,
        22,
        79,
        28,
        10,
        22,
        25,
        9,
        6,
        19,
        21,
        9,
        9
    ],
    "breath_rate_stage": [
        14,
        14,
        13,
        14,
        14,
        14,
        14,
        14,
        14,
        14,
        14,
        14,
        13,
        13,
        14,
        13,
        13,
        13,
        14,
        14,
        14,
        14,
        14,
        13,
        14,
        14,
        14,
        14,
        14,
        14,
        14
    ],
    "breath_rate_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "breath_biggest_limit": 0.0,
    "breath_smallest_limit": 0.0,
    "snore_times_stage": [
        158,
        749,
        548,
        296,
        275,
        388,
        197,
        171,
        74,
        258,
        297,
        459,
        498,
        129,
        199,
        180,
        88,
        177,
        351,
        33,
        49,
        127,
        135,
        81,
        244,
        91,
        78,
        15,
        128,
        38,
        34
    ],
    "anti_snore_times_stage": [
        9,
        13,
        10,
        11,
        8,
        9,
        3,
        7,
        5,
        7,
        9,
        0,
        7,
        2,
        3,
        3,
        1,
        2,
        4,
        0,
        0,
        3,
        3,
        1,
        4,
        2,
        1,
        0,
        2,
        1,
        0
    ],
    "snore_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        1
    ],
    "sdnn_stage": [
        61,
        50,
        62,
        64,
        55,
        48,
        80,
        55,
        51,
        45,
        53,
        49,
        45,
        53,
        67,
        56,
        56,
        49,
        49,
        94,
        58,
        46,
        68,
        67,
        92,
        110,
        61,
        63,
        70,
        67,
        72
    ],
    "sdnn_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "sdnn_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_stage": [
        47,
        37,
        36,
        38,
        36,
        39,
        42,
        35,
        32,
        37,
        44,
        35,
        34,
        43,
        38,
        36,
        34,
        35,
        32,
        63,
        41,
        29,
        42,
        46,
        55,
        57,
        44,
        45,
        44,
        37,
        43
    ],
    "rmssd_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_stage": [
        0.17,
        0.13,
        0.15,
        0.16,
        0.12,
        0.16,
        0.23,
        0.13,
        0.11,
        0.18,
        0.24,
        0.14,
        0.15,
        0.22,
        0.17,
        0.14,
        0.15,
        0.09,
        0.11,
        0.19,
        0.12,
        0.08,
        0.14,
        0.18,
        0.31,
        0.32,
        0.25,
        0.21,
        0.21,
        0.16,
        0.23
    ],
    "pnn50_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_stage": [
        0.77,
        1.24,
        1.1,
        0.9,
        1.13,
        0.73,
        0.84,
        1.1,
        1.13,
        0.97,
        0.66,
        1.07,
        0.85,
        0.74,
        0.94,
        0.89,
        1.07,
        1.15,
        1.11,
        0.84,
        1.02,
        1.15,
        0.85,
        1.14,
        0.88,
        0.79,
        1.19,
        1.26,
        1.15,
        1.59,
        1.73
    ],
    "lfhf_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "date": [
        "2023-03-21",
        "2023-03-22",
        "2023-03-23",
        "2023-03-24",
        "2023-03-25",
        "2023-03-26",
        "2023-03-27",
        "2023-03-28",
        "2023-03-29",
        "2023-03-30",
        "2023-03-31",
        "2023-04-01",
        "2023-04-02",
        "2023-04-03",
        "2023-04-04",
        "2023-04-05",
        "2023-04-06",
        "2023-04-07",
        "2023-04-08",
        "2023-04-09",
        "2023-04-10",
        "2023-04-11",
        "2023-04-12",
        "2023-04-13",
        "2023-04-14",
        "2023-04-15",
        "2023-04-16",
        "2023-04-17",
        "2023-04-18",
        "2023-04-19",
        "2023-04-20"
    ],
    "sleep_duration_week": [],
    "sleep_duration_month": [
        {
            "date": "2023-03-21",
            "deep_sleep_duration": 166,
            "shallow_sleep_duration": 380,
            "clear_duration": 2,
            "avg_heart_rate": 57,
            "anti_snore_times": 9,
            "turnover_times": 57,
            "twitch_times": 58,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-22",
            "deep_sleep_duration": 160,
            "shallow_sleep_duration": 368,
            "clear_duration": 2,
            "avg_heart_rate": 61,
            "anti_snore_times": 13,
            "turnover_times": 67,
            "twitch_times": 40,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-23",
            "deep_sleep_duration": 162,
            "shallow_sleep_duration": 374,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 10,
            "turnover_times": 58,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-24",
            "deep_sleep_duration": 158,
            "shallow_sleep_duration": 366,
            "clear_duration": 0,
            "avg_heart_rate": 61,
            "anti_snore_times": 11,
            "turnover_times": 70,
            "twitch_times": 37,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-25",
            "deep_sleep_duration": 170,
            "shallow_sleep_duration": 394,
            "clear_duration": 2,
            "avg_heart_rate": 61,
            "anti_snore_times": 8,
            "turnover_times": 87,
            "twitch_times": 44,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-26",
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 310,
            "clear_duration": 2,
            "avg_heart_rate": 64,
            "anti_snore_times": 9,
            "turnover_times": 53,
            "twitch_times": 26,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-27",
            "deep_sleep_duration": 120,
            "shallow_sleep_duration": 274,
            "clear_duration": 2,
            "avg_heart_rate": 60,
            "anti_snore_times": 3,
            "turnover_times": 35,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-28",
            "deep_sleep_duration": 162,
            "shallow_sleep_duration": 372,
            "clear_duration": 2,
            "avg_heart_rate": 59,
            "anti_snore_times": 7,
            "turnover_times": 61,
            "twitch_times": 41,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-29",
            "deep_sleep_duration": 168,
            "shallow_sleep_duration": 388,
            "clear_duration": 2,
            "avg_heart_rate": 60,
            "anti_snore_times": 5,
            "turnover_times": 60,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-30",
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 352,
            "clear_duration": 2,
            "avg_heart_rate": 59,
            "anti_snore_times": 7,
            "turnover_times": 61,
            "twitch_times": 40,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-03-31",
            "deep_sleep_duration": 168,
            "shallow_sleep_duration": 388,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 9,
            "turnover_times": 57,
            "twitch_times": 45,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-01",
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 326,
            "clear_duration": 0,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 53,
            "twitch_times": 24,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-02",
            "deep_sleep_duration": 200,
            "shallow_sleep_duration": 456,
            "clear_duration": 10,
            "avg_heart_rate": 60,
            "anti_snore_times": 7,
            "turnover_times": 103,
            "twitch_times": 84,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-03",
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 328,
            "clear_duration": 2,
            "avg_heart_rate": 59,
            "anti_snore_times": 2,
            "turnover_times": 53,
            "twitch_times": 26,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-04",
            "deep_sleep_duration": 164,
            "shallow_sleep_duration": 382,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 3,
            "turnover_times": 55,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-05",
            "deep_sleep_duration": 180,
            "shallow_sleep_duration": 416,
            "clear_duration": 4,
            "avg_heart_rate": 61,
            "anti_snore_times": 3,
            "turnover_times": 81,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-06",
            "deep_sleep_duration": 166,
            "shallow_sleep_duration": 380,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 1,
            "turnover_times": 74,
            "twitch_times": 47,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-07",
            "deep_sleep_duration": 168,
            "shallow_sleep_duration": 390,
            "clear_duration": 2,
            "avg_heart_rate": 61,
            "anti_snore_times": 2,
            "turnover_times": 63,
            "twitch_times": 37,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-08",
            "deep_sleep_duration": 150,
            "shallow_sleep_duration": 346,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 4,
            "turnover_times": 64,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-09",
            "deep_sleep_duration": 112,
            "shallow_sleep_duration": 254,
            "clear_duration": 4,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 49,
            "twitch_times": 32,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-10",
            "deep_sleep_duration": 176,
            "shallow_sleep_duration": 402,
            "clear_duration": 6,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 93,
            "twitch_times": 73,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-11",
            "deep_sleep_duration": 160,
            "shallow_sleep_duration": 372,
            "clear_duration": 0,
            "avg_heart_rate": 65,
            "anti_snore_times": 3,
            "turnover_times": 53,
            "twitch_times": 48,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-12",
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 310,
            "clear_duration": 6,
            "avg_heart_rate": 63,
            "anti_snore_times": 3,
            "turnover_times": 50,
            "twitch_times": 28,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-13",
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 336,
            "clear_duration": 4,
            "avg_heart_rate": 65,
            "anti_snore_times": 1,
            "turnover_times": 59,
            "twitch_times": 44,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-14",
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 352,
            "clear_duration": 2,
            "avg_heart_rate": 65,
            "anti_snore_times": 4,
            "turnover_times": 71,
            "twitch_times": 48,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-15",
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 318,
            "clear_duration": 4,
            "avg_heart_rate": 58,
            "anti_snore_times": 2,
            "turnover_times": 44,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-16",
            "deep_sleep_duration": 118,
            "shallow_sleep_duration": 226,
            "clear_duration": 48,
            "avg_heart_rate": 60,
            "anti_snore_times": 1,
            "turnover_times": 41,
            "twitch_times": 30,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-17",
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 288,
            "clear_duration": 34,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 63,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-18",
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 268,
            "clear_duration": 70,
            "avg_heart_rate": 60,
            "anti_snore_times": 2,
            "turnover_times": 50,
            "twitch_times": 56,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-19",
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 242,
            "clear_duration": 86,
            "avg_heart_rate": 61,
            "anti_snore_times": 1,
            "turnover_times": 48,
            "twitch_times": 37,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "date": "2023-04-20",
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 228,
            "clear_duration": 74,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 44,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        }
    ],
    "sleep_date": true
}
let yearData = {
    "user_name": "Rafael",
    "twitch_times_stage_year": [
        88,
        107,
        95,
        151,
        131,
        128,
        0,
        114,
        0,
        0,
        "-",
        42,
        0,
        "-",
        60,
        49,
        0,
        9,
        36,
        25,
        31,
        36,
        40,
        0,
        28,
        29,
        16,
        25,
        35,
        24,
        0,
        28,
        25,
        31,
        36,
        37,
        54,
        31,
        22
    ],
    "twitch_times": 12814,
    "sleep_duration": 108152,
    "deep_sleep_duration": 32658,
    "avg_deep_sleep_duration": 141,
    "avg_shallow_sleep_duration": 310,
    "avg_heart_rate": 61,
    "avg_breath_rate": 13,
    "avg_snore_times": 428,
    "deep_sleep_durations": [
        142,
        144,
        159,
        150,
        141,
        162,
        0,
        148,
        0,
        0,
        "-",
        145,
        0,
        "-",
        128,
        136,
        0,
        29,
        141,
        141,
        145,
        146,
        145,
        0,
        140,
        131,
        88,
        129,
        137,
        129,
        0,
        127,
        126,
        142,
        136,
        136,
        145,
        130,
        109
    ],
    "shallow_sleep_durations": [
        286,
        317,
        356,
        328,
        321,
        357,
        0,
        335,
        0,
        0,
        "-",
        334,
        0,
        "-",
        291,
        304,
        0,
        67,
        313,
        320,
        320,
        336,
        330,
        0,
        308,
        296,
        196,
        290,
        317,
        282,
        0,
        282,
        266,
        293,
        265,
        276,
        329,
        291,
        205
    ],
    "clear_durations": [
        40,
        17,
        12,
        19,
        5,
        18,
        0,
        5,
        0,
        0,
        "-",
        2,
        0,
        "-",
        5,
        10,
        0,
        0,
        12,
        6,
        16,
        2,
        5,
        0,
        17,
        6,
        7,
        10,
        1,
        17,
        0,
        11,
        24,
        35,
        50,
        40,
        5,
        11,
        47
    ],
    "shallow_sleep_duration": 71688,
    "clear_duration": 650,
    "left_bed_duration": 3156,
    "sleep_time": "23:18:17",
    "sleep_time_stage": [
        "2021-10-31 01:52:00",
        "2021-10-31 23:53:00",
        "2021-11-01 22:20:00",
        "2021-11-02 22:43:00",
        "2021-11-04 01:44:00",
        "2021-11-05 01:30:00",
        "2021-11-05 22:11:00",
        "2021-11-06 23:38:00",
        "2021-11-07 23:26:00",
        "2021-11-08 23:14:00",
        "2021-11-09 22:15:00",
        "2021-11-10 22:12:00",
        "2021-11-11 23:20:00",
        "2021-11-12 23:13:00",
        "2021-11-13 22:22:00",
        "2021-11-14 22:10:00",
        "2021-11-15 22:25:00",
        "2021-11-16 22:42:00",
        "2021-11-17 22:39:00",
        "2021-11-18 21:59:00",
        "2021-11-19 22:05:00",
        "2021-11-21 00:16:00",
        "2021-11-21 22:18:00",
        "2021-11-22 23:16:00",
        "2021-11-23 23:20:00",
        "2021-11-24 21:55:00",
        "2021-11-25 22:49:00",
        "2021-11-26 22:02:00",
        "2021-11-27 23:21:00",
        "2021-11-28 23:07:00",
        "2021-11-29 21:52:00",
        "2021-11-30 23:02:00",
        "2021-12-01 23:41:00",
        "2021-12-02 23:59:00",
        "2021-12-03 22:34:00",
        "2021-12-04 20:43:00",
        "2021-12-05 22:07:00",
        "2021-12-06 22:12:00",
        "2021-12-07 21:35:00",
        "2021-12-08 22:01:00",
        "2021-12-09 22:25:00",
        "2021-12-10 23:59:00",
        "2021-12-11 22:54:00",
        "2021-12-12 23:46:00",
        "2021-12-13 22:05:00",
        "2021-12-14 22:49:00",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "2021-12-22 22:36:00",
        "2021-12-23 21:50:00",
        "2021-12-24 22:44:00",
        "2021-12-25 22:03:00",
        "2021-12-26 22:41:00",
        "2021-12-27 22:58:00",
        "2021-12-28 22:14:00",
        "2021-12-29 22:39:00",
        "2021-12-30 23:35:00",
        "-",
        "-",
        "-",
        "2022-01-03 22:26:00",
        "2022-01-04 22:00:00",
        "-",
        "2022-01-06 22:03:00",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "2022-01-17 23:02:00",
        "2022-01-18 22:05:00",
        "2022-01-19 21:28:00",
        "2022-01-20 23:45:00",
        "2022-01-21 23:07:00",
        "2022-01-22 23:37:00",
        "2022-01-23 22:38:00",
        "2022-01-24 23:17:00",
        "2022-01-25 23:04:00",
        "2022-01-26 21:41:00",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "2022-02-10 04:12:00",
        "2022-02-10 23:26:00",
        "2022-02-11 22:47:00",
        "2022-02-13 01:32:00",
        "2022-02-13 22:58:00",
        "2022-02-14 23:17:00",
        "2022-02-16 00:38:00",
        "2022-02-16 22:45:00",
        "2022-02-17 22:54:00",
        "2022-02-18 23:21:00",
        "2022-02-20 00:32:00",
        "2022-02-20 23:07:00",
        "2022-02-21 23:16:00",
        "2022-02-22 22:43:00",
        "-",
        "-",
        "-",
        "-",
        "2022-02-27 23:07:00",
        "2022-02-28 20:42:00",
        "2022-03-01 22:19:00",
        "2022-03-02 22:31:00",
        "-",
        "2022-03-04 22:48:00",
        "2022-03-05 22:37:00",
        "2022-03-06 22:04:00",
        "2022-03-07 22:17:00",
        "2022-03-08 23:05:00",
        "2022-03-09 22:44:00",
        "2022-03-10 23:20:00",
        "2022-03-11 23:45:00",
        "2022-03-13 02:57:00",
        "2022-03-13 22:14:00",
        "2022-03-14 23:03:00",
        "2022-03-15 22:59:00",
        "2022-03-16 23:00:00",
        "2022-03-17 22:59:00",
        "2022-03-18 22:35:00",
        "2022-03-19 22:54:00",
        "2022-03-20 22:29:00",
        "2022-03-21 22:13:00",
        "2022-03-22 22:37:00",
        "2022-03-24 00:40:00",
        "2022-03-25 01:27:00",
        "2022-03-25 21:56:00",
        "2022-03-26 21:56:00",
        "2022-03-27 22:34:00",
        "2022-03-28 23:13:00",
        "2022-03-29 22:52:00",
        "2022-03-30 23:04:00",
        "2022-03-31 22:43:00",
        "2022-04-01 23:00:00",
        "2022-04-03 02:54:00",
        "2022-04-04 00:36:00",
        "2022-04-04 23:21:00",
        "2022-04-05 22:51:00",
        "2022-04-06 23:14:00",
        "2022-04-07 23:52:00",
        "2022-04-08 23:09:00",
        "2022-04-10 00:28:00",
        "2022-04-11 00:31:00",
        "2022-04-12 00:04:00",
        "2022-04-12 23:18:00",
        "2022-04-13 23:20:00",
        "2022-04-14 23:01:00",
        "-",
        "2022-04-17 00:00:00",
        "2022-04-18 02:07:00",
        "2022-04-18 22:18:00",
        "2022-04-19 22:40:00",
        "2022-04-20 23:34:00",
        "2022-04-21 22:45:00",
        "2022-04-22 23:34:00",
        "2022-04-24 01:51:00",
        "2022-04-24 22:51:00",
        "2022-04-25 23:50:00",
        "2022-04-27 00:02:00",
        "2022-04-27 23:34:00",
        "2022-04-28 23:43:00",
        "2022-04-29 23:49:00",
        "2022-05-01 03:07:00",
        "2022-05-02 00:48:00",
        "-",
        "2022-05-03 22:16:00",
        "2022-05-04 23:02:00",
        "2022-05-05 23:48:00",
        "2022-05-06 23:09:00",
        "2022-05-08 01:44:00",
        "2022-05-08 23:19:00",
        "2022-05-09 23:33:00",
        "2022-05-11 00:21:00",
        "2022-05-11 23:26:00",
        "2022-05-12 23:20:00",
        "2022-05-13 23:48:00",
        "2022-05-15 00:21:00",
        "2022-05-15 23:23:00",
        "2022-05-16 23:57:00",
        "2022-05-17 22:51:00",
        "2022-05-18 23:51:00",
        "2022-05-19 22:41:00",
        "2022-05-20 23:37:00",
        "2022-05-22 02:07:00",
        "2022-05-22 23:16:00",
        "2022-05-23 23:55:00",
        "2022-05-24 23:25:00",
        "2022-05-25 23:32:00",
        "2022-05-26 23:34:00",
        "2022-05-27 23:14:00",
        "2022-05-29 00:57:00",
        "2022-05-29 22:49:00",
        "2022-05-30 23:15:00",
        "2022-05-31 23:34:00",
        "2022-06-01 23:45:00",
        "-",
        "-",
        "-",
        "2022-06-06 00:26:00",
        "2022-06-06 23:37:00",
        "2022-06-07 23:51:00",
        "2022-06-08 22:42:00",
        "2022-06-09 23:36:00",
        "2022-06-10 23:26:00",
        "2022-06-12 03:18:00",
        "2022-06-12 23:19:00",
        "2022-06-13 23:07:00",
        "2022-06-14 23:02:00",
        "2022-06-15 23:03:00",
        "2022-06-16 23:26:00",
        "2022-06-18 00:37:00",
        "2022-06-18 22:57:00",
        "2022-06-19 22:51:00",
        "2022-06-20 23:17:00",
        "2022-06-21 22:57:00",
        "2022-06-22 23:02:00",
        "2022-06-23 23:32:00",
        "2022-06-24 23:36:00",
        "2022-06-25 23:49:00",
        "2022-06-26 21:44:00",
        "2022-06-27 23:20:00",
        "2022-06-28 23:10:00",
        "2022-06-29 23:11:00",
        "2022-07-01 01:19:00",
        "2022-07-01 23:21:00",
        "2022-07-02 23:06:00",
        "2022-07-03 22:44:00",
        "2022-07-04 23:38:00",
        "2022-07-05 23:17:00",
        "2022-07-07 00:30:00",
        "2022-07-07 23:16:00",
        "2022-07-08 23:21:00",
        "2022-07-09 23:39:00",
        "2022-07-10 23:27:00",
        "2022-07-11 21:54:00",
        "2022-07-12 23:57:00",
        "2022-07-13 22:54:00",
        "2022-07-14 22:52:00",
        "2022-07-15 23:18:00",
        "2022-07-17 00:06:00",
        "2022-07-17 23:32:00",
        "2022-07-18 23:20:00",
        "2022-07-19 23:28:00",
        "2022-07-20 23:34:00",
        "2022-07-21 23:40:00",
        "2022-07-22 23:25:00",
        "2022-07-23 23:47:00",
        "-",
        "2022-07-25 22:34:00",
        "2022-07-26 23:59:00",
        "2022-07-27 23:43:00",
        "2022-07-28 22:53:00",
        "2022-07-29 22:55:00",
        "2022-07-30 23:26:00",
        "2022-08-01 00:01:00",
        "2022-08-01 22:46:00"
    ],
    "wake_time": "07:06:29",
    "wake_time_stage": [
        "2021-10-31 10:24:00",
        "2021-11-01 06:47:00",
        "2021-11-02 06:42:00",
        "2021-11-03 06:45:00",
        "2021-11-04 06:36:00",
        "2021-11-05 11:00:00",
        "2021-11-06 06:45:00",
        "2021-11-07 09:32:00",
        "2021-11-08 05:50:00",
        "2021-11-09 06:46:00",
        "2021-11-10 06:45:00",
        "2021-11-11 06:44:00",
        "2021-11-12 06:46:00",
        "2021-11-13 06:45:00",
        "2021-11-14 09:32:00",
        "2021-11-15 06:46:00",
        "2021-11-16 06:47:00",
        "2021-11-17 06:46:00",
        "2021-11-18 06:35:00",
        "2021-11-19 06:55:00",
        "2021-11-20 06:31:00",
        "2021-11-21 09:50:00",
        "2021-11-22 06:40:00",
        "2021-11-23 06:46:00",
        "2021-11-24 06:46:00",
        "2021-11-25 06:45:00",
        "2021-11-26 06:45:00",
        "2021-11-27 06:36:00",
        "2021-11-28 07:35:00",
        "2021-11-29 06:45:00",
        "2021-11-30 06:46:00",
        "2021-12-01 06:48:00",
        "2021-12-02 06:45:00",
        "2021-12-03 06:47:00",
        "2021-12-04 06:46:00",
        "2021-12-05 09:27:00",
        "2021-12-06 06:51:00",
        "2021-12-07 06:26:00",
        "2021-12-08 06:45:00",
        "2021-12-09 06:45:00",
        "2021-12-10 06:49:00",
        "2021-12-11 06:45:00",
        "2021-12-12 09:56:00",
        "2021-12-13 06:46:00",
        "2021-12-14 06:49:00",
        "2021-12-15 06:07:00",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "2021-12-23 06:30:00",
        "2021-12-24 06:46:00",
        "2021-12-25 06:20:00",
        "2021-12-26 08:11:00",
        "2021-12-27 06:47:00",
        "2021-12-28 06:46:00",
        "2021-12-29 06:46:00",
        "2021-12-30 06:45:00",
        "2021-12-31 07:45:00",
        "-",
        "-",
        "-",
        "2022-01-04 06:46:00",
        "2022-01-05 06:46:00",
        "-",
        "2022-01-07 06:45:00",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "2022-01-18 06:46:00",
        "2022-01-19 06:45:00",
        "2022-01-20 06:46:00",
        "2022-01-21 06:35:00",
        "2022-01-22 06:49:00",
        "2022-01-23 08:57:00",
        "2022-01-24 06:46:00",
        "2022-01-25 06:49:00",
        "2022-01-26 06:46:00",
        "2022-01-27 06:35:00",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "2022-02-10 10:06:00",
        "2022-02-11 06:50:00",
        "2022-02-12 06:45:00",
        "2022-02-13 08:54:00",
        "2022-02-14 06:46:00",
        "2022-02-15 06:51:00",
        "2022-02-16 06:58:00",
        "2022-02-17 06:53:00",
        "2022-02-18 06:56:00",
        "2022-02-19 06:47:00",
        "2022-02-20 09:34:00",
        "2022-02-21 06:55:00",
        "2022-02-22 06:56:00",
        "2022-02-23 06:55:00",
        "-",
        "-",
        "-",
        "-",
        "2022-02-28 06:33:00",
        "2022-03-01 06:38:00",
        "2022-03-02 06:47:00",
        "2022-03-03 06:55:00",
        "-",
        "2022-03-05 06:56:00",
        "2022-03-06 04:59:00",
        "2022-03-07 06:54:00",
        "2022-03-08 06:55:00",
        "2022-03-09 06:55:00",
        "2022-03-10 06:56:00",
        "2022-03-11 06:54:00",
        "2022-03-12 06:53:00",
        "2022-03-13 09:57:00",
        "2022-03-14 06:42:00",
        "2022-03-15 06:39:00",
        "2022-03-16 06:47:00",
        "2022-03-17 06:48:00",
        "2022-03-18 06:45:00",
        "2022-03-19 06:45:00",
        "2022-03-20 09:50:00",
        "2022-03-21 06:45:00",
        "2022-03-22 06:39:00",
        "2022-03-23 06:53:00",
        "2022-03-24 06:46:00",
        "2022-03-25 06:53:00",
        "2022-03-26 06:44:00",
        "2022-03-27 07:38:00",
        "2022-03-28 06:44:00",
        "2022-03-29 06:45:00",
        "2022-03-30 06:44:00",
        "2022-03-31 06:46:00",
        "2022-04-01 06:39:00",
        "2022-04-02 06:46:00",
        "2022-04-03 09:56:00",
        "2022-04-04 09:38:00",
        "2022-04-05 09:31:00",
        "2022-04-06 06:45:00",
        "2022-04-07 06:46:00",
        "2022-04-08 06:46:00",
        "2022-04-09 06:49:00",
        "2022-04-10 09:18:00",
        "2022-04-11 06:43:00",
        "2022-04-12 06:40:00",
        "2022-04-13 06:40:00",
        "2022-04-14 06:46:00",
        "2022-04-15 06:45:00",
        "-",
        "2022-04-17 09:06:00",
        "2022-04-18 08:15:00",
        "2022-04-19 06:46:00",
        "2022-04-20 06:46:00",
        "2022-04-21 06:46:00",
        "2022-04-22 06:43:00",
        "2022-04-23 06:56:00",
        "2022-04-24 09:55:00",
        "2022-04-25 06:47:00",
        "2022-04-26 06:46:00",
        "2022-04-27 06:46:00",
        "2022-04-28 06:36:00",
        "2022-04-29 06:45:00",
        "2022-04-30 06:45:00",
        "2022-05-01 09:53:00",
        "2022-05-02 09:26:00",
        "-",
        "2022-05-04 05:16:00",
        "2022-05-05 06:46:00",
        "2022-05-06 06:42:00",
        "2022-05-07 06:43:00",
        "2022-05-08 09:56:00",
        "2022-05-09 06:41:00",
        "2022-05-10 06:45:00",
        "2022-05-11 06:45:00",
        "2022-05-12 06:46:00",
        "2022-05-13 06:04:00",
        "2022-05-14 06:46:00",
        "2022-05-15 09:27:00",
        "2022-05-16 06:45:00",
        "2022-05-17 06:37:00",
        "2022-05-18 06:45:00",
        "2022-05-19 06:47:00",
        "2022-05-20 06:45:00",
        "2022-05-21 06:49:00",
        "2022-05-22 09:55:00",
        "2022-05-23 06:34:00",
        "2022-05-24 06:41:00",
        "2022-05-25 06:49:00",
        "2022-05-26 05:30:00",
        "2022-05-27 06:52:00",
        "2022-05-28 06:46:00",
        "2022-05-29 07:11:00",
        "2022-05-30 06:45:00",
        "2022-05-31 06:53:00",
        "2022-06-01 06:46:00",
        "2022-06-02 06:39:00",
        "-",
        "-",
        "-",
        "2022-06-06 06:40:00",
        "2022-06-07 06:45:00",
        "2022-06-08 06:07:00",
        "2022-06-09 06:46:00",
        "2022-06-10 06:48:00",
        "2022-06-11 06:38:00",
        "2022-06-12 09:54:00",
        "2022-06-13 06:45:00",
        "2022-06-14 06:45:00",
        "2022-06-15 06:44:00",
        "2022-06-16 05:17:00",
        "2022-06-17 06:46:00",
        "2022-06-18 06:27:00",
        "2022-06-19 09:41:00",
        "2022-06-20 06:41:00",
        "2022-06-21 05:45:00",
        "2022-06-22 06:43:00",
        "2022-06-23 06:46:00",
        "2022-06-24 06:46:00",
        "2022-06-25 06:44:00",
        "2022-06-26 09:53:00",
        "2022-06-27 06:42:00",
        "2022-06-28 06:46:00",
        "2022-06-29 06:46:00",
        "2022-06-30 05:15:00",
        "2022-07-01 06:19:00",
        "2022-07-02 06:51:00",
        "2022-07-03 08:10:00",
        "2022-07-04 06:40:00",
        "2022-07-05 06:50:00",
        "2022-07-06 06:41:00",
        "2022-07-07 06:54:00",
        "2022-07-08 06:44:00",
        "2022-07-09 06:45:00",
        "2022-07-10 08:57:00",
        "2022-07-11 06:57:00",
        "2022-07-12 06:46:00",
        "2022-07-13 07:01:00",
        "2022-07-14 06:48:00",
        "2022-07-15 06:56:00",
        "2022-07-16 06:40:00",
        "2022-07-17 08:10:00",
        "2022-07-18 06:42:00",
        "2022-07-19 06:52:00",
        "2022-07-20 06:28:00",
        "2022-07-21 06:46:00",
        "2022-07-22 05:58:00",
        "2022-07-23 06:45:00",
        "2022-07-24 09:07:00",
        "-",
        "2022-07-26 06:46:00",
        "2022-07-27 06:37:00",
        "2022-07-28 06:39:00",
        "2022-07-29 05:35:00",
        "2022-07-30 06:39:00",
        "2022-07-31 08:36:00",
        "2022-08-01 06:45:00",
        "2022-08-02 06:50:00"
    ],
    "sleep_grade": 21173,
    "avg_sleep_grage": 91,
    "sleep_duration_last_month": 0,
    "deep_sleep_duration_last_month": 0,
    "shallow_sleep_duration_last_month": 0,
    "clear_duration_last_month": 0,
    "left_bed_duration_last_month": 0,
    "sleep_grade_last_month": 0,
    "avg_sleep_grage_last_month": 0,
    "heart_rate_stage": [
        62,
        58,
        62,
        60,
        58,
        60,
        0,
        61,
        0,
        0,
        "-",
        64,
        0,
        "-",
        66,
        63,
        0,
        14,
        61,
        61,
        63,
        61,
        64,
        0,
        70,
        63,
        41,
        59,
        60,
        58,
        0,
        60,
        62,
        60,
        60,
        60,
        60,
        57,
        48
    ],
    "left_bed_times": [
        2,
        1,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        "-",
        0,
        0,
        "-",
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        1,
        0,
        2,
        0,
        0,
        1,
        1,
        2,
        1,
        0,
        1,
        3
    ],
    "left_bed_time": 1,
    "heart_rate_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "heart_biggest_limit": 0.0,
    "heart_smallest_limit": 0.0,
    "long_interval_counts_stage": [
        16,
        29,
        33,
        33,
        30,
        33,
        23,
        27,
        45,
        15,
        0,
        25,
        27,
        0,
        7,
        24,
        19,
        24,
        13,
        38,
        18,
        19,
        32,
        20,
        23,
        18,
        12,
        16,
        45,
        13,
        15,
        16,
        13,
        12,
        11,
        32,
        24,
        27,
        25
    ],
    "breath_rate_stage": [
        14,
        13,
        13,
        14,
        13,
        13,
        0,
        13,
        0,
        0,
        "-",
        13,
        0,
        "-",
        13,
        13,
        0,
        3,
        13,
        14,
        13,
        13,
        13,
        0,
        14,
        13,
        9,
        14,
        14,
        14,
        0,
        14,
        14,
        13,
        14,
        13,
        14,
        14,
        11
    ],
    "breath_rate_abnormal_flag": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "breath_biggest_limit": 0.0,
    "breath_smallest_limit": 0.0,
    "snore_times_stage": [
        735,
        489,
        596,
        430,
        545,
        510,
        0,
        655,
        0,
        0,
        "-",
        1215,
        0,
        "-",
        1098,
        775,
        0,
        27,
        332,
        591,
        331,
        172,
        489,
        0,
        677,
        218,
        72,
        52,
        284,
        75,
        0,
        231,
        72,
        146,
        160,
        164,
        190,
        258,
        249
    ],
    "anti_snore_times_stage": [
        0,
        0,
        0,
        0,
        4,
        0,
        0,
        11,
        0,
        0,
        "-",
        11,
        0,
        "-",
        9,
        9,
        0,
        0,
        0,
        0,
        0,
        2,
        0,
        0,
        0,
        0,
        0,
        0,
        4,
        0,
        0,
        4,
        1,
        6,
        5,
        5,
        1,
        0,
        0
    ],
    "snore_abnormal_flag": [
        1,
        1,
        1,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        1,
        0,
        1,
        0,
        1,
        1,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0
    ],
    "sdnn_stage": [
        60,
        56,
        60,
        56,
        61,
        57,
        33,
        23,
        51,
        24,
        0,
        46,
        36,
        0,
        20,
        54,
        30,
        41,
        66,
        63,
        51,
        54,
        67,
        63,
        59,
        64,
        49,
        62,
        69,
        61,
        48,
        67,
        59,
        63,
        79,
        84,
        90,
        78,
        69
    ],
    "sdnn_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "sdnn_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_stage": [
        51,
        40,
        42,
        36,
        38,
        35,
        0,
        38,
        0,
        0,
        "-",
        42,
        0,
        "-",
        36,
        34,
        0,
        10,
        40,
        44,
        35,
        36,
        36,
        0,
        48,
        38,
        27,
        46,
        50,
        49,
        0,
        53,
        39,
        40,
        50,
        53,
        69,
        57,
        40
    ],
    "rmssd_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "rmssd_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_stage": [
        0.18,
        0.23,
        0.15,
        0.22,
        0.19,
        0.08,
        0.18,
        0.22,
        0.23,
        0.25,
        0.07,
        0.11,
        0.13,
        0.15,
        0.14,
        0.18,
        0.16,
        0.15,
        0.21,
        0.03,
        0.32,
        0.2,
        0.1,
        0.1,
        0.09,
        0.06,
        0.1,
        0.09,
        0.12,
        0.13,
        0.17,
        0.16,
        0.11,
        0.12,
        0.09,
        0.08,
        0.13,
        0.07,
        0.12,
        0.12,
        0.13,
        0.11,
        0.07,
        0.09,
        0.12,
        0.1,
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        0.07,
        0.1,
        0.1,
        0.09,
        0.07,
        0.1,
        0.05,
        0.08,
        0.17,
        "-",
        "-",
        "-",
        0.07,
        0.07,
        "-",
        0.09,
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        0.23,
        0.14,
        0.05,
        0.12,
        0.07,
        0.07,
        0.06,
        0.06,
        0.06,
        0.05,
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        0.1,
        0.04,
        0.04,
        0.06,
        0.05,
        0.05,
        0.16,
        0.12,
        0.05,
        0.14,
        0.08,
        0.08,
        0.04,
        0.08,
        "-",
        "-",
        "-",
        "-",
        0.1,
        0.07,
        0.15,
        0.1,
        "-",
        0.1,
        0.08,
        0.12,
        0.2,
        0.18,
        0.12,
        0.22,
        0.09,
        0.03,
        0.19,
        0.31,
        0.19,
        0.14,
        0.17,
        0.13,
        0.15,
        0.11,
        0.15,
        0.17,
        0.03,
        0.13,
        0.17,
        0.19,
        0.15,
        0.1,
        0.17,
        0.11,
        0.13,
        0.16,
        0.12,
        0.14,
        0.09,
        0.09,
        0.14,
        0.13,
        0.14,
        0.13,
        0.16,
        0.14,
        0.21,
        0.18,
        0.06,
        "-",
        0.14,
        0.06,
        0.07,
        0.11,
        0.09,
        0.12,
        0.12,
        0.06,
        0.14,
        0.17,
        0.23,
        0.12,
        0.1,
        0.11,
        0.08,
        0.05,
        "-",
        0.08,
        0.12,
        0.24,
        0.18,
        0.5,
        0.18,
        0.13,
        0.07,
        0.1,
        0.11,
        0.16,
        0.16,
        0.15,
        0.28,
        0.17,
        0.23,
        0.18,
        0.25,
        0.24,
        0.18,
        0.2,
        0.16,
        0.23,
        0.07,
        0.25,
        0.06,
        0.13,
        0.19,
        0.17,
        0.21,
        "-",
        "-",
        "-",
        0.21,
        0.31,
        0.26,
        0.35,
        0.18,
        0.21,
        0.09,
        0.16,
        0.16,
        0.15,
        0.15,
        0.17,
        0.03,
        0.23,
        0.27,
        0.2,
        0.16,
        0.2,
        0.06,
        0.16,
        0.11,
        0.23,
        0.27,
        0.21,
        0.41,
        0.31,
        0.18,
        0.21,
        0.38,
        0.4,
        0.21,
        0.24,
        0.28,
        0.18,
        0.15,
        0.26,
        0.24,
        0.32,
        0.27,
        0.36,
        0.2,
        0.28,
        0.33,
        0.23,
        0.29,
        0.25,
        0.23,
        0.25,
        0.24,
        "-",
        0.15,
        0.14,
        0.2,
        0.28,
        0.36,
        0.39,
        0.36,
        0.21
    ],
    "pnn50_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "pnn50_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_stage": [
        0.52,
        0.69,
        0.89,
        0.5,
        0.85,
        0.77,
        0.52,
        0.66,
        0.6,
        0.5,
        1.23,
        1.29,
        0.9,
        0.99,
        0.94,
        0.7,
        0.81,
        0.76,
        0.7,
        1.81,
        0.53,
        0.74,
        0.96,
        0.65,
        0.97,
        1.07,
        0.96,
        1.07,
        0.87,
        0.82,
        0.6,
        0.78,
        0.64,
        0.81,
        0.95,
        1.21,
        1.02,
        1.33,
        0.9,
        0.89,
        1.19,
        1.03,
        1.22,
        1.38,
        1.01,
        1.1,
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        0.82,
        0.96,
        1.15,
        1.4,
        1.82,
        0.92,
        1.24,
        1.28,
        0.93,
        "-",
        "-",
        "-",
        1.48,
        1.0,
        "-",
        1.25,
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        0.66,
        1.39,
        1.39,
        0.64,
        0.93,
        1.32,
        1.25,
        0.78,
        1.31,
        1.44,
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        "-",
        1.86,
        0.86,
        1.06,
        1.24,
        1.42,
        1.46,
        0.52,
        0.67,
        1.73,
        0.73,
        1.41,
        1.24,
        1.72,
        1.41,
        "-",
        "-",
        "-",
        "-",
        0.78,
        0.81,
        0.55,
        1.33,
        "-",
        0.67,
        0.97,
        0.94,
        0.9,
        0.81,
        0.68,
        0.73,
        0.97,
        1.38,
        0.71,
        0.67,
        0.56,
        0.94,
        0.66,
        0.9,
        0.87,
        0.83,
        0.86,
        0.82,
        1.06,
        1.08,
        0.79,
        0.78,
        0.98,
        0.92,
        0.85,
        1.04,
        0.86,
        0.75,
        0.9,
        0.88,
        0.83,
        0.95,
        1.05,
        0.68,
        0.99,
        0.94,
        0.83,
        0.86,
        0.57,
        0.57,
        0.89,
        "-",
        0.85,
        0.72,
        1.05,
        0.37,
        0.71,
        0.84,
        0.61,
        1.64,
        1.02,
        0.6,
        0.61,
        0.87,
        0.95,
        0.78,
        0.96,
        1.65,
        "-",
        0.96,
        0.84,
        0.67,
        0.59,
        0.66,
        0.58,
        0.83,
        1.16,
        0.97,
        0.51,
        0.48,
        0.74,
        0.51,
        0.6,
        0.78,
        0.65,
        0.69,
        0.49,
        0.49,
        0.71,
        0.52,
        1.0,
        0.46,
        1.11,
        0.46,
        0.45,
        1.11,
        0.59,
        0.76,
        0.48,
        "-",
        "-",
        "-",
        0.82,
        0.59,
        0.53,
        0.5,
        0.88,
        0.75,
        0.75,
        0.8,
        0.57,
        0.7,
        0.64,
        0.75,
        1.48,
        0.7,
        0.55,
        0.64,
        0.59,
        0.52,
        0.93,
        0.72,
        1.01,
        0.67,
        0.71,
        0.93,
        0.43,
        0.53,
        0.69,
        0.7,
        0.96,
        0.54,
        0.79,
        0.96,
        0.86,
        1.09,
        0.93,
        0.67,
        0.74,
        0.64,
        0.5,
        0.55,
        0.61,
        0.67,
        0.74,
        0.52,
        0.69,
        0.8,
        1.08,
        0.74,
        0.84,
        "-",
        1.28,
        1.1,
        1.11,
        1.51,
        0.86,
        0.61,
        0.61,
        0.85
    ],
    "lfhf_limit": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "lfhf_abmormal_flag_stage": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "date": [
        "2021-10-31",
        "2021-11-07",
        "2021-11-14",
        "2021-11-21",
        "2021-11-28",
        "2021-12-05",
        "2021-12-12",
        "2021-12-19",
        "2021-12-26",
        "2022-01-02",
        "2022-01-09",
        "2022-01-16",
        "2022-01-23",
        "2022-01-30",
        "2022-02-06",
        "2022-02-13",
        "2022-02-20",
        "2022-02-27",
        "2022-03-06",
        "2022-03-13",
        "2022-03-20",
        "2022-03-27",
        "2022-04-03",
        "2022-04-10",
        "2022-04-17",
        "2022-04-24",
        "2022-05-01",
        "2022-05-08",
        "2022-05-15",
        "2022-05-22",
        "2022-05-29",
        "2022-06-05",
        "2022-06-12",
        "2022-06-19",
        "2022-06-26",
        "2022-07-03",
        "2022-07-10",
        "2022-07-17",
        "2022-07-24"
    ],
    "sleep_duration_year": [
        {
            "deep_sleep_duration": 154,
            "shallow_sleep_duration": 312,
            "clear_duration": 46,
            "avg_heart_rate": 72,
            "anti_snore_times": 0,
            "turnover_times": 75,
            "twitch_times": 86,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 280,
            "clear_duration": 8,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 145,
            "twitch_times": 151,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 316,
            "clear_duration": 34,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 87,
            "twitch_times": 124,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 280,
            "clear_duration": 56,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 106,
            "twitch_times": 79,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 88,
            "shallow_sleep_duration": 126,
            "clear_duration": 78,
            "avg_heart_rate": 58,
            "anti_snore_times": 1,
            "turnover_times": 53,
            "twitch_times": 38,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 172,
            "shallow_sleep_duration": 376,
            "clear_duration": 22,
            "avg_heart_rate": 76,
            "anti_snore_times": 0,
            "turnover_times": 61,
            "twitch_times": 56,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 156,
            "shallow_sleep_duration": 316,
            "clear_duration": 42,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 102,
            "twitch_times": 86,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 180,
            "shallow_sleep_duration": 350,
            "clear_duration": 64,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 122,
            "twitch_times": 88,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 116,
            "shallow_sleep_duration": 250,
            "clear_duration": 18,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 170,
            "twitch_times": 148,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 314,
            "clear_duration": 2,
            "avg_heart_rate": 55,
            "anti_snore_times": 0,
            "turnover_times": 59,
            "twitch_times": 86,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 154,
            "shallow_sleep_duration": 348,
            "clear_duration": 8,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 78,
            "twitch_times": 124,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 154,
            "shallow_sleep_duration": 354,
            "clear_duration": 4,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 54,
            "twitch_times": 96,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 306,
            "clear_duration": 6,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 73,
            "twitch_times": 104,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 298,
            "clear_duration": 18,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 101,
            "twitch_times": 106,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 202,
            "shallow_sleep_duration": 454,
            "clear_duration": 14,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 84,
            "twitch_times": 129,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 156,
            "shallow_sleep_duration": 318,
            "clear_duration": 42,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 96,
            "twitch_times": 141,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 350,
            "clear_duration": 0,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 54,
            "twitch_times": 80,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 336,
            "clear_duration": 2,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 52,
            "twitch_times": 80,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 320,
            "clear_duration": 12,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 50,
            "twitch_times": 73,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 162,
            "shallow_sleep_duration": 374,
            "clear_duration": 0,
            "avg_heart_rate": 74,
            "anti_snore_times": 0,
            "turnover_times": 37,
            "twitch_times": 45,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 340,
            "clear_duration": 14,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 69,
            "twitch_times": 120,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 174,
            "shallow_sleep_duration": 382,
            "clear_duration": 18,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 110,
            "twitch_times": 143,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 336,
            "clear_duration": 14,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 130,
            "twitch_times": 231,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 260,
            "clear_duration": 54,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 91,
            "twitch_times": 165,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 310,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 88,
            "twitch_times": 130,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 160,
            "shallow_sleep_duration": 364,
            "clear_duration": 6,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 71,
            "twitch_times": 108,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 324,
            "clear_duration": 8,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 80,
            "twitch_times": 151,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 156,
            "shallow_sleep_duration": 322,
            "clear_duration": 36,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 81,
            "twitch_times": 129,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 150,
            "shallow_sleep_duration": 334,
            "clear_duration": 10,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 126,
            "twitch_times": 227,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 312,
            "clear_duration": 8,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 124,
            "twitch_times": 185,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 162,
            "shallow_sleep_duration": 370,
            "clear_duration": 2,
            "avg_heart_rate": 60,
            "anti_snore_times": 9,
            "turnover_times": 74,
            "twitch_times": 105,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 322,
            "clear_duration": 4,
            "avg_heart_rate": 59,
            "anti_snore_times": 10,
            "turnover_times": 61,
            "twitch_times": 78,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 128,
            "shallow_sleep_duration": 294,
            "clear_duration": 2,
            "avg_heart_rate": 58,
            "anti_snore_times": 7,
            "turnover_times": 73,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 124,
            "shallow_sleep_duration": 274,
            "clear_duration": 10,
            "avg_heart_rate": 57,
            "anti_snore_times": 6,
            "turnover_times": 82,
            "twitch_times": 107,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 342,
            "clear_duration": 2,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 74,
            "twitch_times": 101,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 230,
            "shallow_sleep_duration": 516,
            "clear_duration": 18,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 128,
            "twitch_times": 192,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 158,
            "shallow_sleep_duration": 366,
            "clear_duration": 0,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 74,
            "twitch_times": 116,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 150,
            "shallow_sleep_duration": 280,
            "clear_duration": 64,
            "avg_heart_rate": 62,
            "anti_snore_times": 4,
            "turnover_times": 92,
            "twitch_times": 110,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 166,
            "shallow_sleep_duration": 360,
            "clear_duration": 24,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 85,
            "twitch_times": 143,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 158,
            "shallow_sleep_duration": 360,
            "clear_duration": 6,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 68,
            "twitch_times": 112,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 342,
            "clear_duration": 10,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 81,
            "twitch_times": 115,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 122,
            "shallow_sleep_duration": 276,
            "clear_duration": 8,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 85,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 200,
            "shallow_sleep_duration": 454,
            "clear_duration": 8,
            "avg_heart_rate": 63,
            "anti_snore_times": 12,
            "turnover_times": 78,
            "twitch_times": 141,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 284,
            "clear_duration": 10,
            "avg_heart_rate": 60,
            "anti_snore_times": 9,
            "turnover_times": 110,
            "twitch_times": 175,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 158,
            "shallow_sleep_duration": 342,
            "clear_duration": 24,
            "avg_heart_rate": 63,
            "anti_snore_times": 10,
            "turnover_times": 92,
            "twitch_times": 116,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 294,
            "clear_duration": 12,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 6,
            "turnover_times": 74,
            "twitch_times": 114,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 322,
            "clear_duration": 8,
            "avg_heart_rate": 62,
            "anti_snore_times": 10,
            "turnover_times": 88,
            "twitch_times": 142,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 162,
            "shallow_sleep_duration": 370,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 12,
            "turnover_times": 54,
            "twitch_times": 94,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 314,
            "clear_duration": 4,
            "avg_heart_rate": 61,
            "anti_snore_times": 12,
            "turnover_times": 49,
            "twitch_times": 106,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 184,
            "shallow_sleep_duration": 418,
            "clear_duration": 6,
            "avg_heart_rate": 62,
            "anti_snore_times": 16,
            "turnover_times": 102,
            "twitch_times": 171,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 334,
            "clear_duration": 6,
            "avg_heart_rate": 62,
            "anti_snore_times": 8,
            "turnover_times": 66,
            "twitch_times": 135,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 312,
            "clear_duration": 14,
            "avg_heart_rate": 61,
            "anti_snore_times": 8,
            "turnover_times": 64,
            "twitch_times": 64,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 154,
            "shallow_sleep_duration": 350,
            "clear_duration": 8,
            "avg_heart_rate": 63,
            "anti_snore_times": 13,
            "turnover_times": 123,
            "twitch_times": 88,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 334,
            "clear_duration": 6,
            "avg_heart_rate": 63,
            "anti_snore_times": 9,
            "turnover_times": 58,
            "twitch_times": 67,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 332,
            "clear_duration": 10,
            "avg_heart_rate": 59,
            "anti_snore_times": 7,
            "turnover_times": 95,
            "twitch_times": 91,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 59,
            "anti_snore_times": 7,
            "turnover_times": 95,
            "twitch_times": 91,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 59,
            "anti_snore_times": 7,
            "turnover_times": 95,
            "twitch_times": 91,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 59,
            "anti_snore_times": 7,
            "turnover_times": 95,
            "twitch_times": 91,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 150,
            "shallow_sleep_duration": 338,
            "clear_duration": 12,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 53,
            "twitch_times": 48,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 158,
            "shallow_sleep_duration": 350,
            "clear_duration": 18,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 70,
            "twitch_times": 50,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 70,
            "twitch_times": 50,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 158,
            "shallow_sleep_duration": 356,
            "clear_duration": 8,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 52,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 320,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 11,
            "turnover_times": 32,
            "twitch_times": 38,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 156,
            "shallow_sleep_duration": 362,
            "clear_duration": 2,
            "avg_heart_rate": 66,
            "anti_snore_times": 15,
            "turnover_times": 45,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 168,
            "shallow_sleep_duration": 388,
            "clear_duration": 2,
            "avg_heart_rate": 70,
            "anti_snore_times": 11,
            "turnover_times": 27,
            "twitch_times": 58,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 124,
            "shallow_sleep_duration": 282,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 10,
            "turnover_times": 28,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 320,
            "clear_duration": 2,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 29,
            "twitch_times": 47,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 168,
            "shallow_sleep_duration": 388,
            "clear_duration": 4,
            "avg_heart_rate": 63,
            "anti_snore_times": 12,
            "turnover_times": 42,
            "twitch_times": 43,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 332,
            "clear_duration": 8,
            "avg_heart_rate": 63,
            "anti_snore_times": 7,
            "turnover_times": 36,
            "twitch_times": 63,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 306,
            "clear_duration": 10,
            "avg_heart_rate": 66,
            "anti_snore_times": 6,
            "turnover_times": 39,
            "twitch_times": 55,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 318,
            "clear_duration": 4,
            "avg_heart_rate": 66,
            "anti_snore_times": 10,
            "turnover_times": 34,
            "twitch_times": 63,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 162,
            "shallow_sleep_duration": 372,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 11,
            "turnover_times": 44,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 108,
            "shallow_sleep_duration": 246,
            "clear_duration": 0,
            "avg_heart_rate": 64,
            "anti_snore_times": 8,
            "turnover_times": 26,
            "twitch_times": 58,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 300,
            "clear_duration": 10,
            "avg_heart_rate": 67,
            "anti_snore_times": 10,
            "turnover_times": 40,
            "twitch_times": 64,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 328,
            "clear_duration": 6,
            "avg_heart_rate": 67,
            "anti_snore_times": 10,
            "turnover_times": 27,
            "twitch_times": 60,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 304,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 12,
            "turnover_times": 40,
            "twitch_times": 44,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 316,
            "clear_duration": 10,
            "avg_heart_rate": 61,
            "anti_snore_times": 12,
            "turnover_times": 35,
            "twitch_times": 57,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 274,
            "clear_duration": 42,
            "avg_heart_rate": 65,
            "anti_snore_times": 8,
            "turnover_times": 31,
            "twitch_times": 63,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 114,
            "shallow_sleep_duration": 262,
            "clear_duration": 4,
            "avg_heart_rate": 67,
            "anti_snore_times": 3,
            "turnover_times": 29,
            "twitch_times": 49,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 336,
            "clear_duration": 4,
            "avg_heart_rate": 66,
            "anti_snore_times": 10,
            "turnover_times": 32,
            "twitch_times": 55,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 334,
            "clear_duration": 2,
            "avg_heart_rate": 63,
            "anti_snore_times": 10,
            "turnover_times": 32,
            "twitch_times": 39,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 308,
            "clear_duration": 4,
            "avg_heart_rate": 60,
            "anti_snore_times": 11,
            "turnover_times": 35,
            "twitch_times": 41,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 164,
            "shallow_sleep_duration": 364,
            "clear_duration": 14,
            "avg_heart_rate": 59,
            "anti_snore_times": 10,
            "turnover_times": 55,
            "twitch_times": 56,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 318,
            "clear_duration": 8,
            "avg_heart_rate": 60,
            "anti_snore_times": 11,
            "turnover_times": 35,
            "twitch_times": 48,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 310,
            "clear_duration": 12,
            "avg_heart_rate": 63,
            "anti_snore_times": 12,
            "turnover_times": 27,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 340,
            "clear_duration": 4,
            "avg_heart_rate": 68,
            "anti_snore_times": 13,
            "turnover_times": 31,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 68,
            "anti_snore_times": 13,
            "turnover_times": 31,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 68,
            "anti_snore_times": 13,
            "turnover_times": 31,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 68,
            "anti_snore_times": 13,
            "turnover_times": 31,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 68,
            "anti_snore_times": 13,
            "turnover_times": 31,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 294,
            "clear_duration": 18,
            "avg_heart_rate": 66,
            "anti_snore_times": 12,
            "turnover_times": 25,
            "twitch_times": 50,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 180,
            "shallow_sleep_duration": 416,
            "clear_duration": 0,
            "avg_heart_rate": 89,
            "anti_snore_times": 16,
            "turnover_times": 19,
            "twitch_times": 87,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 154,
            "shallow_sleep_duration": 354,
            "clear_duration": 0,
            "avg_heart_rate": 82,
            "anti_snore_times": 13,
            "turnover_times": 26,
            "twitch_times": 80,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 350,
            "clear_duration": 2,
            "avg_heart_rate": 81,
            "anti_snore_times": 14,
            "turnover_times": 25,
            "twitch_times": 77,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 81,
            "anti_snore_times": 14,
            "turnover_times": 25,
            "twitch_times": 77,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 338,
            "clear_duration": 2,
            "avg_heart_rate": 72,
            "anti_snore_times": 0,
            "turnover_times": 56,
            "twitch_times": 47,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 116,
            "shallow_sleep_duration": 266,
            "clear_duration": 0,
            "avg_heart_rate": 69,
            "anti_snore_times": 0,
            "turnover_times": 45,
            "twitch_times": 37,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 160,
            "shallow_sleep_duration": 368,
            "clear_duration": 2,
            "avg_heart_rate": 64,
            "anti_snore_times": 0,
            "turnover_times": 69,
            "twitch_times": 56,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 156,
            "shallow_sleep_duration": 330,
            "clear_duration": 32,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 59,
            "twitch_times": 48,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 278,
            "clear_duration": 50,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 47,
            "twitch_times": 31,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 342,
            "clear_duration": 2,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 50,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 316,
            "clear_duration": 0,
            "avg_heart_rate": 56,
            "anti_snore_times": 0,
            "turnover_times": 45,
            "twitch_times": 27,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 294,
            "clear_duration": 4,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 41,
            "twitch_times": 28,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 294,
            "clear_duration": 0,
            "avg_heart_rate": 72,
            "anti_snore_times": 0,
            "turnover_times": 27,
            "twitch_times": 20,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 154,
            "shallow_sleep_duration": 334,
            "clear_duration": 20,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 45,
            "twitch_times": 27,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 314,
            "clear_duration": 4,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 52,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 324,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 36,
            "twitch_times": 22,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 316,
            "clear_duration": 10,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 39,
            "twitch_times": 26,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 322,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 48,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 340,
            "clear_duration": 2,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 47,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 198,
            "shallow_sleep_duration": 446,
            "clear_duration": 12,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 58,
            "twitch_times": 44,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 150,
            "shallow_sleep_duration": 344,
            "clear_duration": 2,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 53,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 152,
            "shallow_sleep_duration": 354,
            "clear_duration": 0,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 60,
            "twitch_times": 20,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 150,
            "shallow_sleep_duration": 338,
            "clear_duration": 8,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 47,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 110,
            "shallow_sleep_duration": 256,
            "clear_duration": 0,
            "avg_heart_rate": 75,
            "anti_snore_times": 0,
            "turnover_times": 29,
            "twitch_times": 28,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 98,
            "shallow_sleep_duration": 224,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 31,
            "twitch_times": 27,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 160,
            "shallow_sleep_duration": 282,
            "clear_duration": 86,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 47,
            "twitch_times": 39,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 176,
            "shallow_sleep_duration": 404,
            "clear_duration": 2,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 60,
            "twitch_times": 31,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 338,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 3,
            "turnover_times": 61,
            "twitch_times": 42,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 312,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 36,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 328,
            "clear_duration": 2,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 45,
            "twitch_times": 49,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 320,
            "clear_duration": 2,
            "avg_heart_rate": 63,
            "anti_snore_times": 2,
            "turnover_times": 50,
            "twitch_times": 42,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 328,
            "clear_duration": 4,
            "avg_heart_rate": 59,
            "anti_snore_times": 1,
            "turnover_times": 45,
            "twitch_times": 31,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 326,
            "clear_duration": 0,
            "avg_heart_rate": 61,
            "anti_snore_times": 8,
            "turnover_times": 57,
            "twitch_times": 39,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 128,
            "shallow_sleep_duration": 290,
            "clear_duration": 4,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 43,
            "twitch_times": 28,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 164,
            "shallow_sleep_duration": 358,
            "clear_duration": 20,
            "avg_heart_rate": 66,
            "anti_snore_times": 0,
            "turnover_times": 60,
            "twitch_times": 58,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 184,
            "shallow_sleep_duration": 422,
            "clear_duration": 4,
            "avg_heart_rate": 64,
            "anti_snore_times": 0,
            "turnover_times": 72,
            "twitch_times": 39,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 326,
            "clear_duration": 4,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 64,
            "twitch_times": 45,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 314,
            "clear_duration": 2,
            "avg_heart_rate": 67,
            "anti_snore_times": 0,
            "turnover_times": 50,
            "twitch_times": 27,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 288,
            "clear_duration": 0,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 49,
            "twitch_times": 51,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 318,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 52,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 160,
            "shallow_sleep_duration": 366,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 66,
            "twitch_times": 40,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 112,
            "shallow_sleep_duration": 240,
            "clear_duration": 20,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 37,
            "twitch_times": 21,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 120,
            "shallow_sleep_duration": 272,
            "clear_duration": 4,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 32,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 282,
            "clear_duration": 26,
            "avg_heart_rate": 64,
            "anti_snore_times": 0,
            "turnover_times": 47,
            "twitch_times": 32,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 272,
            "clear_duration": 40,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 40,
            "twitch_times": 27,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 324,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 41,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 41,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 164,
            "shallow_sleep_duration": 364,
            "clear_duration": 18,
            "avg_heart_rate": 67,
            "anti_snore_times": 0,
            "turnover_times": 53,
            "twitch_times": 42,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 112,
            "shallow_sleep_duration": 256,
            "clear_duration": 0,
            "avg_heart_rate": 77,
            "anti_snore_times": 0,
            "turnover_times": 30,
            "twitch_times": 9,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 154,
            "shallow_sleep_duration": 324,
            "clear_duration": 30,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 45,
            "twitch_times": 41,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 338,
            "clear_duration": 2,
            "avg_heart_rate": 85,
            "anti_snore_times": 0,
            "turnover_times": 34,
            "twitch_times": 14,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 254,
            "clear_duration": 48,
            "avg_heart_rate": 69,
            "anti_snore_times": 0,
            "turnover_times": 38,
            "twitch_times": 19,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 330,
            "clear_duration": 4,
            "avg_heart_rate": 66,
            "anti_snore_times": 0,
            "turnover_times": 42,
            "twitch_times": 40,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 290,
            "clear_duration": 18,
            "avg_heart_rate": 67,
            "anti_snore_times": 0,
            "turnover_times": 55,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 336,
            "clear_duration": 2,
            "avg_heart_rate": 72,
            "anti_snore_times": 0,
            "turnover_times": 36,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 332,
            "clear_duration": 0,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 48,
            "twitch_times": 34,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 288,
            "clear_duration": 2,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 32,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 122,
            "shallow_sleep_duration": 268,
            "clear_duration": 14,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 37,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 128,
            "shallow_sleep_duration": 292,
            "clear_duration": 2,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 40,
            "twitch_times": 26,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 128,
            "shallow_sleep_duration": 274,
            "clear_duration": 20,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 32,
            "twitch_times": 22,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 284,
            "clear_duration": 6,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 39,
            "twitch_times": 32,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 122,
            "shallow_sleep_duration": 256,
            "clear_duration": 28,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 35,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 156,
            "shallow_sleep_duration": 328,
            "clear_duration": 34,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 55,
            "twitch_times": 25,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 55,
            "twitch_times": 25,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 268,
            "clear_duration": 26,
            "avg_heart_rate": 66,
            "anti_snore_times": 0,
            "turnover_times": 35,
            "twitch_times": 20,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 324,
            "clear_duration": 0,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 46,
            "twitch_times": 28,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 278,
            "clear_duration": 10,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 54,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 308,
            "clear_duration": 8,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 48,
            "twitch_times": 25,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 338,
            "clear_duration": 6,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 82,
            "twitch_times": 14,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 286,
            "clear_duration": 22,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 46,
            "twitch_times": 33,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 302,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 40,
            "twitch_times": 27,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 116,
            "shallow_sleep_duration": 256,
            "clear_duration": 12,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 34,
            "twitch_times": 30,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 288,
            "clear_duration": 20,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 29,
            "twitch_times": 26,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 122,
            "shallow_sleep_duration": 268,
            "clear_duration": 14,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 27,
            "twitch_times": 24,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 292,
            "clear_duration": 0,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 39,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 164,
            "shallow_sleep_duration": 382,
            "clear_duration": 0,
            "avg_heart_rate": 72,
            "anti_snore_times": 0,
            "turnover_times": 59,
            "twitch_times": 37,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 308,
            "clear_duration": 0,
            "avg_heart_rate": 66,
            "anti_snore_times": 9,
            "turnover_times": 38,
            "twitch_times": 41,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 120,
            "shallow_sleep_duration": 280,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 6,
            "turnover_times": 40,
            "twitch_times": 31,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 330,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 5,
            "turnover_times": 31,
            "twitch_times": 38,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 290,
            "clear_duration": 0,
            "avg_heart_rate": 56,
            "anti_snore_times": 4,
            "turnover_times": 37,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 334,
            "clear_duration": 4,
            "avg_heart_rate": 56,
            "anti_snore_times": 4,
            "turnover_times": 54,
            "twitch_times": 38,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 298,
            "clear_duration": 4,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 32,
            "twitch_times": 34,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 326,
            "clear_duration": 0,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 39,
            "twitch_times": 27,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 306,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 51,
            "twitch_times": 22,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 122,
            "shallow_sleep_duration": 248,
            "clear_duration": 36,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 35,
            "twitch_times": 24,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 286,
            "clear_duration": 24,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 43,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 108,
            "shallow_sleep_duration": 236,
            "clear_duration": 14,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 34,
            "twitch_times": 25,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 280,
            "clear_duration": 26,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 35,
            "twitch_times": 19,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 294,
            "clear_duration": 22,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 44,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 114,
            "shallow_sleep_duration": 258,
            "clear_duration": 2,
            "avg_heart_rate": 71,
            "anti_snore_times": 0,
            "turnover_times": 34,
            "twitch_times": 21,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 332,
            "clear_duration": 0,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 47,
            "twitch_times": 42,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 274,
            "clear_duration": 46,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 37,
            "twitch_times": 30,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 214,
            "clear_duration": 88,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 28,
            "twitch_times": 30,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 274,
            "clear_duration": 14,
            "avg_heart_rate": 58,
            "anti_snore_times": 2,
            "turnover_times": 44,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 2,
            "turnover_times": 44,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 2,
            "turnover_times": 44,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 58,
            "anti_snore_times": 2,
            "turnover_times": 44,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 114,
            "shallow_sleep_duration": 256,
            "clear_duration": 4,
            "avg_heart_rate": 62,
            "anti_snore_times": 3,
            "turnover_times": 38,
            "twitch_times": 22,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 298,
            "clear_duration": 0,
            "avg_heart_rate": 63,
            "anti_snore_times": 4,
            "turnover_times": 35,
            "twitch_times": 20,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 114,
            "shallow_sleep_duration": 232,
            "clear_duration": 30,
            "avg_heart_rate": 61,
            "anti_snore_times": 1,
            "turnover_times": 29,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 320,
            "clear_duration": 18,
            "avg_heart_rate": 57,
            "anti_snore_times": 4,
            "turnover_times": 42,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 286,
            "clear_duration": 16,
            "avg_heart_rate": 60,
            "anti_snore_times": 6,
            "turnover_times": 43,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 302,
            "clear_duration": 0,
            "avg_heart_rate": 59,
            "anti_snore_times": 8,
            "turnover_times": 53,
            "twitch_times": 40,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 120,
            "shallow_sleep_duration": 246,
            "clear_duration": 30,
            "avg_heart_rate": 65,
            "anti_snore_times": 0,
            "turnover_times": 21,
            "twitch_times": 19,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 306,
            "clear_duration": 6,
            "avg_heart_rate": 59,
            "anti_snore_times": 3,
            "turnover_times": 48,
            "twitch_times": 26,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 320,
            "clear_duration": 0,
            "avg_heart_rate": 60,
            "anti_snore_times": 1,
            "turnover_times": 49,
            "twitch_times": 34,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 294,
            "clear_duration": 28,
            "avg_heart_rate": 57,
            "anti_snore_times": 1,
            "turnover_times": 38,
            "twitch_times": 31,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 114,
            "shallow_sleep_duration": 244,
            "clear_duration": 16,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 38,
            "twitch_times": 28,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 256,
            "clear_duration": 52,
            "avg_heart_rate": 60,
            "anti_snore_times": 1,
            "turnover_times": 42,
            "twitch_times": 26,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 106,
            "shallow_sleep_duration": 202,
            "clear_duration": 42,
            "avg_heart_rate": 78,
            "anti_snore_times": 1,
            "turnover_times": 22,
            "twitch_times": 12,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 194,
            "shallow_sleep_duration": 360,
            "clear_duration": 90,
            "avg_heart_rate": 60,
            "anti_snore_times": 8,
            "turnover_times": 75,
            "twitch_times": 34,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 142,
            "shallow_sleep_duration": 326,
            "clear_duration": 2,
            "avg_heart_rate": 58,
            "anti_snore_times": 7,
            "turnover_times": 69,
            "twitch_times": 42,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 118,
            "shallow_sleep_duration": 220,
            "clear_duration": 50,
            "avg_heart_rate": 57,
            "anti_snore_times": 4,
            "turnover_times": 43,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 296,
            "clear_duration": 30,
            "avg_heart_rate": 59,
            "anti_snore_times": 8,
            "turnover_times": 59,
            "twitch_times": 37,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 316,
            "clear_duration": 8,
            "avg_heart_rate": 58,
            "anti_snore_times": 8,
            "turnover_times": 70,
            "twitch_times": 32,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 262,
            "clear_duration": 40,
            "avg_heart_rate": 69,
            "anti_snore_times": 3,
            "turnover_times": 42,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 272,
            "clear_duration": 26,
            "avg_heart_rate": 61,
            "anti_snore_times": 4,
            "turnover_times": 41,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 182,
            "shallow_sleep_duration": 328,
            "clear_duration": 94,
            "avg_heart_rate": 67,
            "anti_snore_times": 4,
            "turnover_times": 55,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 162,
            "shallow_sleep_duration": 342,
            "clear_duration": 34,
            "avg_heart_rate": 61,
            "anti_snore_times": 6,
            "turnover_times": 90,
            "twitch_times": 57,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 292,
            "clear_duration": 20,
            "avg_heart_rate": 60,
            "anti_snore_times": 9,
            "turnover_times": 61,
            "twitch_times": 34,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 138,
            "shallow_sleep_duration": 290,
            "clear_duration": 28,
            "avg_heart_rate": 60,
            "anti_snore_times": 10,
            "turnover_times": 62,
            "twitch_times": 40,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 110,
            "shallow_sleep_duration": 254,
            "clear_duration": 0,
            "avg_heart_rate": 57,
            "anti_snore_times": 5,
            "turnover_times": 51,
            "twitch_times": 23,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 90,
            "shallow_sleep_duration": 138,
            "clear_duration": 72,
            "avg_heart_rate": 57,
            "anti_snore_times": 2,
            "turnover_times": 31,
            "twitch_times": 20,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 212,
            "clear_duration": 102,
            "avg_heart_rate": 60,
            "anti_snore_times": 5,
            "turnover_times": 51,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 164,
            "shallow_sleep_duration": 378,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 14,
            "turnover_times": 77,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 286,
            "clear_duration": 46,
            "avg_heart_rate": 57,
            "anti_snore_times": 6,
            "turnover_times": 55,
            "twitch_times": 35,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 300,
            "clear_duration": 2,
            "avg_heart_rate": 59,
            "anti_snore_times": 4,
            "turnover_times": 68,
            "twitch_times": 57,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 298,
            "clear_duration": 12,
            "avg_heart_rate": 61,
            "anti_snore_times": 3,
            "turnover_times": 43,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 116,
            "shallow_sleep_duration": 148,
            "clear_duration": 120,
            "avg_heart_rate": 64,
            "anti_snore_times": 3,
            "turnover_times": 36,
            "twitch_times": 25,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 236,
            "clear_duration": 76,
            "avg_heart_rate": 64,
            "anti_snore_times": 4,
            "turnover_times": 47,
            "twitch_times": 29,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 288,
            "clear_duration": 22,
            "avg_heart_rate": 59,
            "anti_snore_times": 3,
            "turnover_times": 53,
            "twitch_times": 36,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 168,
            "shallow_sleep_duration": 372,
            "clear_duration": 18,
            "avg_heart_rate": 57,
            "anti_snore_times": 10,
            "turnover_times": 73,
            "twitch_times": 53,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 308,
            "clear_duration": 6,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 76,
            "twitch_times": 65,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 160,
            "shallow_sleep_duration": 372,
            "clear_duration": 0,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 71,
            "twitch_times": 71,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 128,
            "shallow_sleep_duration": 288,
            "clear_duration": 8,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 68,
            "twitch_times": 49,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 144,
            "shallow_sleep_duration": 326,
            "clear_duration": 4,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 56,
            "twitch_times": 45,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 336,
            "clear_duration": 2,
            "avg_heart_rate": 62,
            "anti_snore_times": 0,
            "turnover_times": 61,
            "twitch_times": 49,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 134,
            "shallow_sleep_duration": 306,
            "clear_duration": 2,
            "avg_heart_rate": 63,
            "anti_snore_times": 0,
            "turnover_times": 53,
            "twitch_times": 46,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 338,
            "clear_duration": 0,
            "avg_heart_rate": 61,
            "anti_snore_times": 0,
            "turnover_times": 64,
            "twitch_times": 62,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 280,
            "clear_duration": 20,
            "avg_heart_rate": 56,
            "anti_snore_times": 0,
            "turnover_times": 51,
            "twitch_times": 18,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 136,
            "shallow_sleep_duration": 312,
            "clear_duration": 4,
            "avg_heart_rate": 56,
            "anti_snore_times": 0,
            "turnover_times": 56,
            "twitch_times": 30,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 274,
            "clear_duration": 20,
            "avg_heart_rate": 55,
            "anti_snore_times": 0,
            "turnover_times": 35,
            "twitch_times": 25,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 130,
            "shallow_sleep_duration": 300,
            "clear_duration": 2,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 48,
            "twitch_times": 38,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 114,
            "shallow_sleep_duration": 264,
            "clear_duration": 0,
            "avg_heart_rate": 56,
            "anti_snore_times": 0,
            "turnover_times": 38,
            "twitch_times": 28,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 132,
            "shallow_sleep_duration": 274,
            "clear_duration": 34,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 37,
            "twitch_times": 22,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 168,
            "shallow_sleep_duration": 384,
            "clear_duration": 8,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 62,
            "twitch_times": 47,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 0,
            "shallow_sleep_duration": 0,
            "clear_duration": 0,
            "avg_heart_rate": 59,
            "anti_snore_times": 0,
            "turnover_times": 62,
            "twitch_times": 47,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 148,
            "shallow_sleep_duration": 308,
            "clear_duration": 36,
            "avg_heart_rate": 56,
            "anti_snore_times": 0,
            "turnover_times": 50,
            "twitch_times": 34,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 120,
            "shallow_sleep_duration": 194,
            "clear_duration": 84,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 31,
            "twitch_times": 24,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 126,
            "shallow_sleep_duration": 274,
            "clear_duration": 16,
            "avg_heart_rate": 58,
            "anti_snore_times": 0,
            "turnover_times": 46,
            "twitch_times": 32,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 122,
            "shallow_sleep_duration": 186,
            "clear_duration": 94,
            "avg_heart_rate": 60,
            "anti_snore_times": 0,
            "turnover_times": 33,
            "twitch_times": 21,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 140,
            "shallow_sleep_duration": 268,
            "clear_duration": 56,
            "avg_heart_rate": 55,
            "anti_snore_times": 0,
            "turnover_times": 34,
            "twitch_times": 22,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 166,
            "shallow_sleep_duration": 300,
            "clear_duration": 84,
            "avg_heart_rate": 57,
            "anti_snore_times": 0,
            "turnover_times": 88,
            "twitch_times": 58,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 122,
            "shallow_sleep_duration": 260,
            "clear_duration": 22,
            "avg_heart_rate": 54,
            "anti_snore_times": 0,
            "turnover_times": 62,
            "twitch_times": 40,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        },
        {
            "deep_sleep_duration": 146,
            "shallow_sleep_duration": 330,
            "clear_duration": 8,
            "avg_heart_rate": 56,
            "anti_snore_times": 0,
            "turnover_times": 59,
            "twitch_times": 58,
            "avg_breath_rate": 0,
            "lfhf": 0.0,
            "sdnn": 0,
            "rmssd": 0,
            "pnn50": 0.0
        }
    ],
    "sleep_date": true
}
function mockDayData() {
    showduration(
        dayData.sleep_duration,
        dayData.deep_sleep_duration,
        dayData.shallow_sleep_duration,
        dayData.clear_duration + dayData.left_bed_duration
    );
    getcollect(dayData);
    sleep_x_handler(dayData.sleep_stage);
    if (model == "heart" || model == "breath" || model == "hrv") {
        $(".subtext-week").html(languageData.lab_8);
    } else {
        if (dayData.sleep_time) {
            if (timetype == 12) {
                $(".subtext-week").html(
                    dateformat(dayData.sleep_time.replace(/-/g, "/"), 0, 3) +
                    " - " +
                    dateformat(dayData.wake_time.replace(/-/g, "/"), 0, 3)
                );
            } else {
                $(".subtext-week").html(
                    dateformat(dayData.sleep_time.replace(/-/g, "/"), 0, 4) +
                    " - " +
                    dateformat(dayData.wake_time.replace(/-/g, "/"), 0, 4)
                );
            }
        }
    }
    if (timetype == 12) {
        if (dayData.sleep_time) {
            $("#left-time").html(
                dateformat(dayData.sleep_time.replace(/-/g, "/"), 0, 3)
            );
        }
        if (dayData.wake_time) {
            $("#right-time").html(
                dateformat(dayData.wake_time.replace(/-/g, "/"), 0, 3)
            );
        }
    } else {
        if (dayData.sleep_time) {
            $("#left-time").html(
                dateformat(dayData.sleep_time.replace(/-/g, "/"), 0, 4)
            );
        }
        console.log("waketime", dayData.wake_time);
        if (dayData.wake_time) {
            $("#right-time").html(
                dateformat(dayData.wake_time.replace(/-/g, "/"), 0, 4)
            );
        }
    }
    if (model == "total") {
        console.log("time", $("#left-time").val());
        let leftvalue = document.getElementById("left-time").innerHTML;
        let rightvalue = document.getElementById("right-time").innerHTML;
        if (leftvalue != "" && rightvalue != "") {
            let label_x_1 = handletime(leftvalue, 1, timetype);
            let label_x_4 = handletime(rightvalue, 2, timetype);
            let label_x_2 = handletime2(label_x_1, label_x_4, timetype)[0];
            let label_x_3 = handletime2(label_x_1, label_x_4, timetype)[1];
            $("#sleepstage_x_1").html(label_x_1);
            $("#sleepstage_x_4").html(label_x_4);
            $("#sleepstage_x_2").html(label_x_2);
            $("#sleepstage_x_3").html(label_x_3);
        }
        drawdaychart1(chart_awake, awake, 3);
        drawdaychart2(chart_light, light, 2);
        drawdaychart3(chart_deep, deep, 1);
        //console.log('languageData.data===>', languageData)
        $(".detail-title").html(languageData.total_text);
        $(".detail-content").html(languageData.total_text2);
    } else if (model == "deep") {
        awake = [];
        light = [];
        let a =
            Math.round(
                (dayData.deep_sleep_duration * 100) / dayData.sleep_duration
            ) + languageData.lab_9;
        if (dayData.deep_sleep_duration > 60) {
            let b = Math.floor(dayData.deep_sleep_duration / 60);
            let c = dayData.deep_sleep_duration % 60;
            $(".title-text-day").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = dayData.deep_sleep_duration % 60;
            $(".title-text-day").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        $("#deep-data0").html(a);
        let leftvalue = document.getElementById("left-time").innerHTML;
        let rightvalue = document.getElementById("right-time").innerHTML;
        if (leftvalue != "" && rightvalue != "") {
            let label_x_1 = handletime(leftvalue, 1, timetype);
            let label_x_4 = handletime(rightvalue, 2, timetype);
            let label_x_2 = handletime2(label_x_1, label_x_4, timetype)[0];
            let label_x_3 = handletime2(label_x_1, label_x_4, timetype)[1];
            $("#sleepstage_x_1").html(label_x_1);
            $("#sleepstage_x_4").html(label_x_4);
            $("#sleepstage_x_2").html(label_x_2);
            $("#sleepstage_x_3").html(label_x_3);
        }
        drawdaychart1(chart_awake, awake, 3);
        drawdaychart2(chart_light, light, 2);
        drawdaychart3(chart_deep, deep, 1);
        $(".detail-title").html(languageData.deep_text);
        $(".detail-content").html(languageData.deep_text2);
    } else if (model == "light") {
        awake = [];
        deep = o;
        let a =
            Math.round(
                (dayData.shallow_sleep_duration * 100) /
                dayData.sleep_duration
            ) + languageData.lab_9;
        if (dayData.shallow_sleep_duration > 60) {
            let b = Math.floor(dayData.shallow_sleep_duration / 60);
            let c = dayData.shallow_sleep_duration % 60;
            $(".title-text-day").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = dayData.shallow_sleep_duration % 60;
            $(".title-text-day").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        $("#deep-data0").html(a);
        console.log("deep", deep);
        let leftvalue = document.getElementById("left-time").innerHTML;
        let rightvalue = document.getElementById("right-time").innerHTML;
        if (leftvalue != "" && rightvalue != "") {
            let label_x_1 = handletime(leftvalue, 1, timetype);
            let label_x_4 = handletime(rightvalue, 2, timetype);
            let label_x_2 = handletime2(label_x_1, label_x_4, timetype)[0];
            let label_x_3 = handletime2(label_x_1, label_x_4, timetype)[1];
            $("#sleepstage_x_1").html(label_x_1);
            $("#sleepstage_x_4").html(label_x_4);
            $("#sleepstage_x_2").html(label_x_2);
            $("#sleepstage_x_3").html(label_x_3);
        }
        drawdaychart1(chart_awake, awake, 3);
        drawdaychart2(chart_light, light, 2);
        drawdaychart3(chart_deep, deep, 1);
        $(".detail-title").html(languageData.light_text);
        $(".detail-content").html(languageData.light_text2);
    } else if (model == "heart") {
        let heart = JSON.parse(dayData.heart_rate_stage);
        let max = Math.max(...heart);
        let min = Math.min(...heart);
        let interval = Math.round(collect.length / 5);
        heart.unshift(heart[0]);
        $(".title-text-week1").html(dayData.avg_heart_rate + " bpm");
        $(".detail-title").html(languageData.heart_text);
        $(".detail-content").html(languageData.heart_text2);

        let leftvalue = "";
        let rightvalue = "";
        if (timetype == 12) {
            if (dayData.sleep_time) {
                leftvalue = dateformat(
                    dayData.sleep_time.replace(/-/g, "/"),
                    0,
                    3
                );
            }
            if (dayData.wake_time) {
                rightvalue = dateformat(
                    dayData.wake_time.replace(/-/g, "/"),
                    0,
                    3
                );
            }
        } else {
            if (dayData.sleep_time) {
                leftvalue = dateformat(
                    dayData.sleep_time.replace(/-/g, "/"),
                    0,
                    4
                );
            }
            if (dayData.wake_time) {
                rightvalue = dateformat(
                    dayData.wake_time.replace(/-/g, "/"),
                    0,
                    4
                );
            }
        }
        let label_x_1 = handletime(leftvalue, 1, timetype);
        let label_x_4 = handletime(rightvalue, 2, timetype);
        let label_x_2 = handletime2(label_x_1, label_x_4, timetype)[0];
        let label_x_3 = handletime2(label_x_1, label_x_4, timetype)[1];
        $("#sleepstage_x_21").html(label_x_1);
        $("#sleepstage_x_24").html(label_x_4);
        $("#sleepstage_x_22").html(label_x_2);
        $("#sleepstage_x_23").html(label_x_3);
        drawheartchart(chart_awake, heart, collect2, max, min, interval);
    } else if (model == "breath") {
        let breath = JSON.parse(dayData.breath_rate_stage);
        let max = Math.max(...breath);
        breath.unshift(breath[0]);
        $(".title-text-week1").html(
            dayData.avg_breath_rate + " " + languageData.lab_14
        );
        $(".detail-title").html(languageData.breath_text);
        $(".detail-content").html(languageData.breath_text2);
        let leftvalue = "";
        let rightvalue = "";
        if (timetype == 12) {
            leftvalue = dateformat(
                dayData.sleep_time.replace(/-/g, "/"),
                0,
                3
            );
            rightvalue = dateformat(
                dayData.wake_time.replace(/-/g, "/"),
                0,
                3
            );
        } else {
            leftvalue = dateformat(
                dayData.sleep_time.replace(/-/g, "/"),
                0,
                4
            );
            rightvalue = dateformat(
                dayData.wake_time.replace(/-/g, "/"),
                0,
                4
            );
        }
        let label_x_1 = handletime(leftvalue, 1, timetype);
        let label_x_4 = handletime(rightvalue, 2, timetype);
        let label_x_2 = handletime2(label_x_1, label_x_4, timetype)[0];
        let label_x_3 = handletime2(label_x_1, label_x_4, timetype)[1];
        $("#sleepstage_x_21").html(label_x_1);
        $("#sleepstage_x_24").html(label_x_4);
        $("#sleepstage_x_22").html(label_x_2);
        $("#sleepstage_x_23").html(label_x_3);
        drawbreathchart(chart_awake, breath, collect2, max);
    } else if (model == "move") {
        $(".title-text-week1").html(
            dayData.twitch_times +
            (dayData.twitch_times == 1
                ? " " + languageData.lab_10.slice(0, -1)
                : " " + languageData.lab_10)
        );
        $(".detail-title").html(languageData.move_text);
        $(".detail-content").html(languageData.move_text2);
    } else if (model == "hrv") {
        $(".title-text-week1").html(dayData.rmssd + " ms");
        $(".detail-title").html(languageData.hrv_text);
        $(".detail-content").html(languageData.hrv_text2);
    } else if (model == "snore") {
        let color = "rgba(38,186,171,1)";
        $(".title-text-week1").html(
            dayData.snore_times +
            (dayData.snore_times == 1
                ? " " + languageData.lab_11
                : " " + languageData.lab_12)
        );
        $("#top-text1").html(
            dayData.anti_snore_times +
            (dayData.anti_snore_times == 1
                ? " " + languageData.snore_text1
                : " " + languageData.snore_text)
        );
        $(".detail-title").html(languageData.snore_text3);
        $(".detail-content").html(languageData.snore_text4);
        let snore = [];
        snore = snorehandle(
            dayData.sleep_time,
            dayData.wake_time,
            dayData.anti_snore_stage,
            snore
        );
        drawsnorechart(chart_awake, snore, color);
    } else if (model == "outbed") {
        let temp = dayData.left_bed_time;
        if (temp != 1) {
            $(".title-text-week1").html(
                dayData.left_bed_time + (" " + languageData.lab_12)
            );
        } else {
            $(".title-text-week1").html(
                dayData.left_bed_time + (" " + languageData.lab_11)
            );
        }
        $(".detail-title").html(
            "Track the number of times you get out of bed at night to monitor changes in your health. "
        );
        $(".detail-content").html(
            "Increased frequency may be caused by: restless leg syndrome, sleep apnea, increased urination, medication, sleep disorders, pain, or other issues.  Getting out of bed at night can lead to increased fall risks. If you notice a change in this health metric you may want to contact your physician."
        );
    }
}
function mockWeekData() {
    let arr = [];
    let arr2 = [];
    let arr3 = [];
    let arr4 = [];
    let avg = 0;
    let avg1 = 0;
    let avg2 = 0;
    let avg3 = 0;
    let days = 0;
    let a = weekData.date;
    for (let i = 0; i < a.length; i++) {
        let temp_date = a[i].substring(5, 10).split("-");
        let temp_date_1 = parseInt(temp_date[0]).toString();
        let temp_date_2 = parseInt(temp_date[1]).toString();
        arr.push(temp_date_1 + "/" + temp_date_2);
        arr2.push(weekData.deep_sleep_durations[i]);
        arr3.push(weekData.shallow_sleep_durations[i]);
        arr4.push(weekData.clear_durations[i]);
        if (
            (weekData.deep_sleep_durations[i] != "-"
                ? weekData.deep_sleep_durations[i]
                : 0) +
            (weekData.shallow_sleep_durations[i] != "-"
                ? weekData.shallow_sleep_durations[i]
                : 0) +
            (weekData.clear_durations[i] != "-"
                ? weekData.clear_durations[i]
                : 0) !=
            0
        ) {
            days = days + 1;
        }
        avg =
            avg +
            (weekData.deep_sleep_durations[i] != "-"
                ? weekData.deep_sleep_durations[i]
                : 0) +
            (weekData.shallow_sleep_durations[i] != "-"
                ? weekData.shallow_sleep_durations[i]
                : 0) +
            (weekData.clear_durations[i] != "-"
                ? weekData.clear_durations[i]
                : 0);
        avg1 =
            avg1 +
            (weekData.deep_sleep_durations[i] != "-"
                ? weekData.deep_sleep_durations[i]
                : 0);
        avg2 =
            avg2 +
            (weekData.shallow_sleep_durations[i] != "-"
                ? weekData.shallow_sleep_durations[i]
                : 0);
        avg3 =
            avg3 +
            (weekData.clear_durations[i] != "-"
                ? weekData.clear_durations[i]
                : 0);
    }
    let max;
    let max1 = Math.max(...arr2);
    let max2 = Math.max(...arr3);
    let max3 = Math.max(...arr4);
    if (max1 > max2) {
        if (max1 > max3) {
            max = max1;
        } else {
            max = max3;
        }
    } else {
        if (max2 > max3) {
            max = max2;
        } else {
            max = max3;
        }
    }
    $("#weeklab").html(
        languageData.lab_4 + ", " + arr[0] + "-" + arr[arr.length - 1]
    );
    $("#week_x_1").html(arr[0]);
    $("#week_x_2").html(arr[2]);
    $("#week_x_3").html(arr[4]);
    $("#week_x_4").html(arr[6]);
    if (model == "total") {
        var chart_week_total = echarts.init(
            document.getElementById("chart_week_total")
        );
        let s_0 = Math.round(avg / days); //大标题平均
        let a1 = Math.round(avg1 / days); //深睡平均
        let a2 = Math.round(avg2 / days); //浅睡平均
        let a3 = Math.round(avg3 / days); //清醒平均
        let mytemp1 = reRender(arr2);
        let mytemp2 = reRender(arr3);
        let mytemp3 = reRender(arr4);
        let arr2_0 = mytemp1.hasdata;
        let arr2_1 = mytemp1.nodata;
        let arr3_0 = mytemp2.hasdata;
        let arr3_1 = mytemp2.nodata;
        let arr4_0 = mytemp3.hasdata;
        let arr4_1 = mytemp3.nodata;
        drawweekchart(
            chart_week_total,
            arr2_0,
            arr2_1,
            arr3_0,
            arr3_1,
            arr4_0,
            arr4_1,
            arr,
            max
        );

        if (a1 + a2 > 60) {
            let b = Math.floor((a1 + a2) / 60);
            let c = (a1 + a2) % 60;
            $(".title-text-week2").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = s_0 % 60;
            $(".title-text-week2").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a1 > 60) {
            let b = Math.floor(a1 / 60);
            let c = a1 % 60;
            $(".deep-data_2").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a1.deep_sleep_duration % 60;
            $(".deep-data_2").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a2 > 60) {
            let b = Math.floor(a2 / 60);
            let c = a2 % 60;
            $(".light-data_2").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a2 % 60;
            $(".light-data_2").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a3 > 60) {
            let b = Math.floor(a3 / 60);
            let c = a3 % 60;

            $(".awake-data_2").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a3 % 60;
            $(".awake-data_2").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        $(".subtext-week").html(languageData.lab_7);
    } else if (model == "deep") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let a1 = Math.round(avg1 / days); //深睡平均
        let color = "rgba(38, 84, 166, 1)";
        let color2 = "rgba(38, 84, 166, 1)";
        let color3 = "rgba(38, 84, 166, 0.2)";
        let color4 = "rgba(38, 84, 166, 0.93)";
        let mytemp = reRender(arr2);
        let arr2_0 = mytemp.hasdata;
        let arr2_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            arr2_0,
            arr2_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
        console.log("a1", a1);
        if (a1 > 60) {
            let b = Math.floor(a1 / 60);
            let c = a1 % 60;
            // $('#deep-data2').html(b + ' hr ' + c + ' min');
            $(".title-text-week2").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a1 % 60;
            // $('#deep-data2').html(0 + ' hr ' + c + ' min');
            $(".title-text-week2").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        // if(sum.)
    } else if (model == "light") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let color = "rgba(38, 186, 171, 1)";
        let color2 = "rgba(38, 186, 171, 1)";
        let color3 = "rgba(38, 186, 171, 0.2)";
        let color4 = "rgba(38, 186, 171, 0.98)";
        let mytemp = reRender(arr3);
        let arr3_0 = mytemp.hasdata;
        let arr3_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            arr3_0,
            arr3_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
        let a2 = Math.round(avg2 / days); //浅睡平均
        if (a2 > 60) {
            let b = Math.floor(a2 / 60);
            let c = a2 % 60;
            $("#deep-data2").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week2").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a2 % 60;
            $("#deep-data2").html(0 + " hr " + c + " min");
            $(".title-text-week2").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
    } else if (model == "heart") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let color = "rgba(219, 74, 106, 1)";
        let color2 = "rgba(219, 74, 106, 0.8)";
        let color3 = "rgba(219, 74, 106, 0.2)";
        let heart = weekData.heart_rate_stage;
        let avg = 0;
        let days = 0;
        for (let i = 0; i < heart.length; i++) {
            if (heart[i] != "-") {
                avg = heart[i] + avg;
                days = days + 1;
            }
        }
        if (avg != 0) {
            $(".title-text-week2").html(Math.round(avg / days) + " bpm");
        } else {
            $(".title-text-week2").html("0 bpm");
        }
        let color4 = "rgba(219, 74, 106, 0.9)";
        let mytemp = reRender(heart);
        let heart_0 = mytemp.hasdata;
        let heart_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            heart_0,
            heart_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "breath") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let color = "rgba(111, 148, 216, 1)";
        let color2 = "rgba(111, 148, 216, 0.8)";
        let color3 = "rgba(111, 148, 216, 0.2)";
        let breath = weekData.breath_rate_stage;
        let avg = 0;
        let days = 0;
        // let temparr = weekData.breath_rate_stage;
        for (let i = 0; i < breath.length; i++) {
            if (breath[i] != "-") {
                avg = breath[i] + avg;
                days = days + 1;
            }
        }
        if (avg != 0) {
            $(".title-text-week2").html(
                Math.round(avg / days) + " " + languageData.lab_14
            );
        } else {
            $(".title-text-week2").html("0 " + languageData.lab_14);
        }
        let color4 = "rgba(111, 148, 216, 0.9)";
        let mytemp = reRender(breath);
        let breath_0 = mytemp.hasdata;
        let breath_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            breath_0,
            breath_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "move") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let slm = weekData.twitch_times_stage;
        let avg = 0;
        let days = 0;
        let color = "rgba(242, 186, 91, 1)";
        let color2 = "rgba(242, 186, 91, 0.8)";
        let color3 = "rgba(242, 186, 91, 0.2)";
        for (let i = 0; i < slm.length; i++) {
            if (slm[i] != "-") {
                avg = slm[i] + avg;
                days = days + 1;
            }
        }
        if (avg != 0) {
            $(".title-text-week2").html(
                Math.round(avg / days) +
                (Math.round(avg / days) == 1
                    ? " " + languageData.lab_10.slice(0, -1)
                    : " " + languageData.lab_10)
            );
        } else {
            $(".title-text-week2").html("0 " + languageData.lab_10);
        }
        let color4 = "rgba(242, 186, 91, 0.9)";
        let mytemp = reRender(slm);
        let slm_0 = mytemp.hasdata;
        let slm_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            slm_0,
            slm_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "hrv") {
        $(".subtext-week").html(languageData.lab_8);
        let color = "rgba(181, 41, 72, 1)";
        let color2 = "rgba(181, 41, 72, 1)";
        let color3 = "rgba(181, 41, 72, 0.2)";
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let rmssd = weekData.rmssd_stage;
        let avg3 = 0;
        let days = 0;
        for (let i = 0; i < rmssd.length; i++) {
            if (rmssd[i] != "-") {
                days = days + 1;
                avg3 = avg3 + rmssd[i];
            }
        }
        console.log("avg3===>", avg3, days);
        if (avg3 != 0) {
            $(".title-text-week2").html(Math.round(avg3 / days) + " ms");
        } else {
            $(".title-text-week2").html("0 ms");
        }
        let color4 = "rgba(181, 41, 72, 0.9)";
        let mytemp = reRender(rmssd);
        let rmssd_0 = mytemp.hasdata;
        let rmssd_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            rmssd_0,
            rmssd_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
        // drawmonthchart(chart_sdnn, sdnn, arr, color2);
    } else if (model == "snore") {
        $(".subtext-week").html(languageData.lab_9);
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let color = "rgba(38,186,171,1)";
        let color2 = "rgba(38,186,171,0.8)";
        let color3 = "rgba(38,186,171,0.2)";
        let snore = weekData.snore_times_stage;
        let avg = 0;
        let avg2 = 0;
        let days = 0;
        let sum0 = weekData.snore_times_stage;
        let sum = weekData.anti_snore_times_stage;
        for (let i = 0; i < sum.length; i++) {
            if (sum[i] != "-") {
                days = days + 1;
                avg = avg + sum[i];
            }
        }
        for (let i = 0; i < sum0.length; i++) {
            if (sum0[i] != "-") {
                avg2 = avg2 + sum0[i];
            }
        }
        if (avg2 != 0) {
            $(".title-text-week2").html(
                Math.round(avg2 / sum0.length) +
                (Math.round(avg2 / sum0.length) == 1
                    ? " " + languageData.lab_11
                    : " " + languageData.lab_12)
            );
        } else {
            $(".title-text-week2").html("0 " + languageData.lab_12);
        }

        if (avg != 1) {
            $("#top-text2").html(
                Math.round(avg / days) + " " + languageData.snore_text
            );
        } else {
            $("#top-text2").html("1 " + languageData.snore_text1);
        }
        $(".subtext-week").html(languageData.lab_7);
        let color4 = "rgba(38,186,171,0.9)";
        let mytemp = reRender(snore);
        let snore_0 = mytemp.hasdata;
        let snore_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            snore_0,
            snore_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "outbed") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_week = echarts.init(
            document.getElementById("chart_week")
        );
        let color = "rgba(240, 92, 73, 1)";
        let color2 = "rgba(240, 92, 73, 1)";
        let color3 = "rgba(240, 92, 73, 0.2)";
        let temp = weekData.left_bed_time;
        if (temp != 1) {
            $(".title-text-week2").html(temp + " times");
        } else {
            $(".title-text-week2").html(temp + " time");
        }
        $(".subtext-week").html(languageData.lab_7);
        let color4 = "rgba(240, 92, 73, 0.9)";
        let mytemp = reRender(weekData.left_bed_times);
        let left_0 = mytemp.hasdata;
        let left_1 = mytemp.nodata;
        drawmonthchart(
            chart_week,
            left_0,
            left_1,
            arr,
            color2,
            color3,
            color3,
            color4
        );
    } else {
    }
}
function mockMonthData() {
    let arr = [];
    let value0 = [];
    let value1 = [];
    let value2 = [];
    let value3 = [];
    let sum = monthData;
    let avg = 0;
    let avg1 = 0;
    let avg2 = 0;
    let avg3 = 0;
    let days = 0;
    arr = monthData.date;
    for (let i = 0; i < arr.length; i++) {
        let a = arr[i].substring(5, 10).split("-");
        let temp_date_1 = parseInt(a[0]).toString();
        let temp_date_2 = parseInt(a[1]).toString();
        let b = temp_date_1 + "/" + temp_date_2;
        value0.push(b);
    }
    for (let i = 0; i < arr.length; i++) {
        value1.push(monthData.deep_sleep_durations[i]);
        value2.push(monthData.shallow_sleep_durations[i]);
        value3.push(monthData.clear_durations[i]);
        if (
            (monthData.deep_sleep_durations[i] != "-"
                ? monthData.deep_sleep_durations[i]
                : 0) +
            (monthData.shallow_sleep_durations[i] != "-"
                ? monthData.shallow_sleep_durations[i]
                : 0) +
            (monthData.clear_durations[i] != "-"
                ? monthData.clear_durations[i]
                : 0) !=
            0
        ) {
            days = days + 1;
        }
        avg =
            avg +
            (monthData.deep_sleep_durations[i] != "-"
                ? monthData.deep_sleep_durations[i]
                : 0) +
            (monthData.shallow_sleep_durations[i] != "-"
                ? monthData.shallow_sleep_durations[i]
                : 0) +
            (monthData.clear_durations[i] != "-"
                ? monthData.clear_durations[i]
                : 0);
        avg1 =
            avg1 +
            (monthData.deep_sleep_durations[i] != "-"
                ? monthData.deep_sleep_durations[i]
                : 0);
        avg2 =
            avg2 +
            (monthData.shallow_sleep_durations[i] != "-"
                ? monthData.shallow_sleep_durations[i]
                : 0);
        avg3 =
            avg3 +
            (monthData.clear_durations[i] != "-"
                ? monthData.clear_durations[i]
                : 0);
    }
    let max;
    let max1 = Math.max(...value1);
    let max2 = Math.max(...value2);
    let max3 = Math.max(...value3);
    if (max1 > max2) {
        if (max1 > max3) {
            max = max1;
        } else {
            max = max3;
        }
    } else {
        if (max2 > max3) {
            max = max2;
        } else {
            max = max3;
        }
    }
    let lab_0 = value0[0];
    console.log("value0", value0);
    let lab_1 = value0[value0.length - 1];
    $("#monthlab").html(
        languageData.lab_4 + ", " + lab_0 + "-" + lab_1
    );
    $(".subtext-week").html(languageData.lab_7);
    $("#month_x_4").html(value0[value0.length - 1]);
    $("#month_x_3").html(value0[value0.length - 11]);
    $("#month_x_2").html(value0[value0.length - 21]);
    $("#month_x_1").html(value0[value0.length - 31]);
    //不同模块处理
    if (model == "total") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_month_total = echarts.init(
            document.getElementById("chart_month_total")
        );
        let s = Math.round(avg / days); //总平均
        let a1 = Math.round(avg1 / days); //深睡平均
        let a2 = Math.round(avg2 / days); //浅睡平均
        let a3 = Math.round(avg3 / days); //清醒平均
        let interval = Math.floor(value0.length / 4);
        console.log("value1", value1);
        let mytemp1 = reRender(value1);
        let mytemp2 = reRender(value2);
        let mytemp3 = reRender(value3);
        let value1_0 = mytemp1.hasdata;
        let value1_1 = mytemp1.nodata;
        let value2_0 = mytemp2.hasdata;
        let value2_1 = mytemp2.nodata;
        let value3_0 = mytemp3.hasdata;
        let value3_1 = mytemp3.nodata;
        console.log("value1====>", value1_0, value1_1);
        // drawweekchart(chart_month_total, value1_0, value1_1, value2_0, value2_1, value3, value0, interval, max);
        drawweekchart(
            chart_month_total,
            value1_0,
            value1_1,
            value2_0,
            value2_1,
            value3_0,
            value3_1,
            value0,
            interval,
            max
        );
        let sleep_duration = Math.round(
            (sum.deep_sleep_duration + sum.shallow_sleep_duration) / 30
        );
        if (sleep_duration > 60) {
            let b = Math.floor(sleep_duration / 60);
            let c = sleep_duration % 60;
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = sleep_duration % 60;
            $(".title-text-week3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a1 > 60) {
            let b = Math.floor(a1 / 60);
            let c = a1 % 60;
            $(".deep-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a1.deep_sleep_duration % 60;
            $(".deep-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a2 > 60) {
            let b = Math.floor(a2 / 60);
            let c = a2 % 60;
            $(".light-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a2 % 60;
            $(".light-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a3 > 60) {
            let b = Math.floor(a3 / 60);
            let c = a3 % 60;
            $(".awake-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a3 % 60;
            $(".awake-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
    } else if (model == "deep") {
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let color = "rgba(38, 84, 166, 1)";
        let color2 = "rgba(38, 84, 166, 1)";
        let color3 = "rgba(38, 84, 166, 0.2)";
        let color4 = "rgba(38, 84, 166, 0.82)";
        let mytemp1 = reRender(value1);
        let value1_0 = mytemp1.hasdata;
        let value1_1 = mytemp1.nodata;
        drawmonthchart(
            chart_month,
            value1_0,
            value1_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
        let sleep_duration = Math.round(sum.avg_deep_sleep_duration);
        if (sleep_duration > 60) {
            let b = Math.floor(sleep_duration / 60);
            let c = sleep_duration % 60;
            $("#deep-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = sleep_duration % 60;
            $("#deep-data3").html(0 + " hr " + c + " min");
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        $(".subtext-week").html(languageData.lab_7);
    } else if (model == "light") {
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let color = "rgba(38, 186, 171, 1)";
        let color2 = "rgba(38, 186, 171, 1)";
        let color3 = "rgba(38, 186, 171, 0.2)";
        let color4 = "rgba(38, 186, 171, 0.79)";
        let mytemp2 = reRender(value2);
        let value2_0 = mytemp2.hasdata;
        let value2_1 = mytemp2.nodata;
        drawmonthchart(
            chart_month,
            value2_0,
            value2_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
        let sleep_duration = Math.round(sum.avg_shallow_sleep_duration);
        if (sleep_duration > 60) {
            let b = Math.floor(sleep_duration / 60);
            let c = sleep_duration % 60;
            $("#deep-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = sleep_duration % 60;
            $("#deep-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        $(".subtext-week").html(languageData.lab_7);
    } else if (model == "heart") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let color = "rgba(219, 74, 106, 1)";
        let color2 = "rgba(219, 74, 106, 1)";
        let color3 = "rgba(219, 74, 106, 0.2)";
        let color4 = "rgba(219, 74, 106, 0.89)";
        let sum = 0;
        let days = 0;
        let heart = monthData.heart_rate_stage;
        for (let i = 0; i < heart.length; i++) {
            if (heart[i] != "-") {
                sum = sum + heart[i];
                days = days + 1;
            }
        }
        if (sum != 0) {
            $(".title-text-week3").html(Math.round(sum / days) + " bpm");
        } else {
            $(".title-text-week3").html("0 bpm");
        }
        let mytemp = reRender(heart);
        let heart0 = mytemp.hasdata;
        let heart1 = mytemp.nodata;
        console.log("heart===>", mytemp);
        drawmonthchart(
            chart_month,
            heart0,
            heart1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "breath") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let color = "rgba(111, 148, 216, 1)";
        let color2 = "rgba(111, 148, 216, 1)";
        let color3 = "rgba(111, 148, 216, 0.2)";
        let color4 = "rgba(111, 148, 216, 1)";
        let breath = [];
        let sum = 0;
        let days = 0;
        let arr_1 = monthData.avg_breath_rate;
        breath = monthData.breath_rate_stage;
        $(".title-text-week3").html(arr_1 + " " + languageData.lab_14);
        let mytemp = reRender(breath);
        let breath0 = mytemp.hasdata;
        let breath1 = mytemp.nodata;
        drawmonthchart(
            chart_month,
            breath0,
            breath1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "move") {
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let color = "rgba(242, 186, 91, 1)";
        let color2 = "rgba(242, 186, 91, 0.8)";
        let color3 = "rgba(242, 186, 91, 0.2)";
        let color4 = "rgba(242, 186, 91, 0.89)";
        let move = monthData.twitch_times_stage;
        let sum = 0;
        let days = 0;
        for (let i = 0; i < move.length; i++) {
            if (move[i] != "-") {
                sum = sum + move[i];
                days = days + 1;
            }
        }
        if (sum != 1) {
            $(".title-text-week3").html(
                Math.round(sum / days) +
                (Math.round(sum / days) == 1
                    ? " " + languageData.lab_10.slice(0, -1)
                    : " " + languageData.lab_10)
            );
        } else {
            $(".title-text-week3").html("0 " + languageData.lab_10);
        }
        $(".subtext-week").html(languageData.lab_7);
        let mytemp = reRender(move);
        let move0 = mytemp.hasdata;
        let move1 = mytemp.nodata;
        drawmonthchart(
            chart_month,
            move0,
            move1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "hrv") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let data = monthData.rmssd_stage;
        let color = "rgba(181, 41, 72, 1)";
        let color2 = "rgba(181, 41, 72, 1)";
        let color3 = "rgba(181, 41, 72, 0.2)";
        let color4 = "rgba(181, 41, 72, 0.84)";
        let avg3 = 0;
        let rmssd = monthData.rmssd_stage;
        let days = 0;
        for (let i = 0; i < rmssd.length; i++) {
            if (rmssd[i] != "-") {
                days = days + 1;
                avg3 = avg3 + rmssd[i];
            }
        }
        $(".hrv_month_num3 ").html(Math.round(avg3 / days));
        if (avg3 != 0) {
            $(".title-text-week3").html(Math.round(avg3 / days) + " ms");
        } else {
            $(".title-text-week3").html("0 ms");
        }
        let mytemp = reRender(rmssd);
        let rmssd0 = mytemp.hasdata;
        let rmssd1 = mytemp.nodata;
        drawmonthchart(
            chart_month,
            rmssd0,
            rmssd1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
        $(".hrv_week_daterow").html(
            languageData.lab_4 + ", " + lab_0[0] + "-" + lab_1[1]
        );
    } else if (model == "snore") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let color = "rgba(38, 186, 171, 1)";
        let color2 = "rgba(38, 186, 171, 1)";
        let color3 = "rgba(38, 186, 171,0.2)";
        let color4 = "rgba(38, 186, 171,0.6)";
        let snore = monthData.snore_times_stage;
        let avg = 0;
        let avg2 = 0;
        let days = 0;
        let sum0 = monthData.snore_times_stage;
        let sum = monthData.anti_snore_times_stage;
        for (let i = 0; i < sum.length; i++) {
            if (sum[i] != "-") {
                days = days + 1;
                avg = avg + sum[i];
            }
        }
        for (let i = 0; i < sum0.length; i++) {
            if (sum0[i] != "-") {
                avg2 = avg2 + sum0[i];
            }
        }
        if (avg2 != 0) {
            $(".title-text-week3").html(
                Math.round(avg2 / sum0.length) +
                (Math.round(avg2 / sum0.length) == 1
                    ? " " + languageData.lab_11
                    : " " + languageData.lab_12)
            );
        } else {
            $(".title-text-week3").html("0 " + languageData.lab_12);
        }
        if (avg != 0) {
            $("#top-text3").html(
                Math.round(avg / days) +
                (Math.round(avg / days) == 1
                    ? " " + languageData.snore_text1
                    : " " + languageData.snore_text)
            );
        } else {
            $("#top-text3").html("0 " + languageData.snore_text);
        }
        let mytemp = reRender(snore);
        let snore0 = mytemp.hasdata;
        let snore1 = mytemp.nodata;
        console.log("mytemp===>", mytemp);
        drawmonthchart(
            chart_month,
            snore0,
            snore1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "outbed") {
        var chart_month = echarts.init(
            document.getElementById("chart_month")
        );
        let color = "rgba(240, 92, 73, 1)";
        let color2 = "rgba(240, 92, 73, 1)";
        let color3 = "rgba(240, 92, 73, 0.2)";
        let color4 = "rgba(240, 92, 73, 0.55)";
        let temp = monthData.left_bed_times;
        let temp2 = monthData.left_bed_time;
        if (temp2 != 1) {
            $(".title-text-week3").html(temp2 + " " + languageData.lab_12);
        } else {
            $(".title-text-week3").html(temp2 + " " + languageData.lab_11);
        }
        $(".subtext-week").html(languageData.lab_7);
        let mytemp = reRender(temp);
        let temp0 = mytemp.hasdata;
        let temp1 = mytemp.nodata;
        drawmonthchart(
            chart_month,
            temp0,
            temp1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    }
}
function mockYearData() {
    let arr = [];
    let value0 = [];
    let value1 = [];
    let value2 = [];
    let value3 = [];
    let sum = yearData;
    let avg = 0;
    let avg1 = 0;
    let avg2 = 0;
    let avg3 = 0;
    let days = 0;
    let time = dateformat(
        new Date(date.replace(/-/g, "/")).getTime() - 24 * 60 * 60 * 365 * 1000,
        0,
        2
    );
    let temp2 = new Date(time.replace(/-/g, "/") + " 00:00:00");
    let yn2 = temp2.getFullYear();
    let mn2 = temp2.getMonth();
    let dn2 = temp2.getDate();
    let tempdate = new Date(
        yearData.date[0].replace(/-/g, "/") + " 00:00:00"
    );
    let mn3 = tempdate.getMonth();
    let dn3 = tempdate.getDate();
    if (mn2 == mn3 && dn2 == dn3) {
        if (yn2 != yn) {
            $("#time-toptext").html(
                MonthArr[mn2] +
                " " +
                dn2 +
                ", " +
                yn2 +
                " - " +
                MonthArr[mn] +
                " " +
                dn +
                ", " +
                yn
            );
        } else {
            $("#time-toptext").html(
                MonthArr[mn2] +
                " " +
                dn2 +
                " - " +
                MonthArr[mn] +
                " " +
                dn +
                ", " +
                yn
            );
        }
    } else {
        if (yn2 != yn) {
            $("#time-toptext").html(
                MonthArr[mn3] +
                " " +
                dn3 +
                ", " +
                yn2 +
                " - " +
                MonthArr[mn] +
                " " +
                dn +
                ", " +
                yn
            );
        } else {
            $("#time-toptext").html(
                MonthArr[mn3] +
                " " +
                dn3 +
                " - " +
                MonthArr[mn] +
                " " +
                dn +
                ", " +
                yn
            );
        }
    }
    //arr = yearData.sleep_duration_year;
    for (let i = 0; i < yearData.date.length; i++) {
        let a = yearData.date[i].substring(5, 10).split("-");
        let temp_date_1 = parseInt(a[0]).toString();
        let temp_date_2 = parseInt(a[1]).toString();
        let b = temp_date_1 + "/" + temp_date_2;
        value0.push(b);
    }
    console.log(yearData.deep_sleep_durations)
    for (let i = 0; i < yearData.date.length; i++) {
        value1.push(yearData.deep_sleep_durations[i]);
        value2.push(yearData.shallow_sleep_durations[i]);
        value3.push(yearData.clear_durations[i]);
        if (
            (yearData.deep_sleep_durations[i] != "-"
                ? yearData.deep_sleep_durations[i]
                : 0) +
            (yearData.shallow_sleep_durations[i] != "-"
                ? yearData.shallow_sleep_durations[i]
                : 0) +
            (yearData.clear_durations[i] != "-"
                ? yearData.clear_durations[i]
                : 0) !=
            0
        ) {
            days = days + 1;
        }
        avg =
            avg +
            (yearData.deep_sleep_durations[i] != "-"
                ? yearData.deep_sleep_durations[i]
                : 0) +
            (yearData.shallow_sleep_durations[i] != "-"
                ? yearData.shallow_sleep_durations[i]
                : 0) +
            (yearData.clear_durations[i] != "-"
                ? yearData.clear_durations[i]
                : 0);
        avg1 =
            avg1 +
            (yearData.deep_sleep_durations[i] != "-"
                ? yearData.deep_sleep_durations[i]
                : 0);
        avg2 =
            avg2 +
            (yearData.shallow_sleep_durations[i] != "-"
                ? yearData.shallow_sleep_durations[i]
                : 0);
        avg3 =
            avg3 +
            (yearData.clear_durations[i] != "-"
                ? yearData.clear_durations[i]
                : 0);
    }
    let max;
    let max1 = Math.max(...value1);
    let max2 = Math.max(...value2);
    let max3 = Math.max(...value3);
    if (max1 > max2) {
        if (max1 > max3) {
            max = max1;
        } else {
            max = max3;
        }
    } else {
        if (max2 > max3) {
            max = max2;
        } else {
            max = max3;
        }
    }
    let lab_0 = value0[0];
    let lab_1 = value0[value0.length - 1];
    if (yn2 != yn) {
        $("#yearlab").html(
            languageData.lab_5 +
            ", " +
            lab_0 +
            "/" +
            yn2.toString().substring(2, 4) +
            "-" +
            lab_1 +
            "/" +
            yn.toString().substring(2, 4)
        );
    } else {
        $("#yearlab").html(
            languageData.lab_5 + ", " + lab_0 + "-" + lab_1
        );
    }
    $(".subtext-week").html(languageData.lab_5);
    let x_arr = [];
    if (value0.length != 0) {
        let temparr = [];
        value0.forEach((item) => {
            temparr.push(parseInt(item.split("/")[0]));
        });
        if (temparr[0] == temparr[temparr.length - 1]) {
            if (temparr.length == 1) {
                x_arr = [...new Set(temparr)];
            } else {
                let temp = temparr[temparr.length - 1];
                x_arr = [...new Set(temparr)];
                x_arr.push(temp);
            }
        } else {
            x_arr = [...new Set(temparr)];
        }
        console.log("xarr", x_arr);
        if (x_arr.length == 1) {
            $("#chart_year_x").css({ display: "block" });
            $("#chart_year_x2").css({ display: "none" });
            $("#chart_year_x3").css({ display: "none" });
            $("#chart_year_x4").css({ display: "none" });
            $("#year_x_1").html(MonthArr[x_arr[0] - 1]);
        }
        if (x_arr.length == 2) {
            $("#chart_year_x").css({ display: "none" });
            $("#chart_year_x2").css({ display: "block" });
            $("#chart_year_x3").css({ display: "none" });
            $("#chart_year_x4").css({ display: "none" });
            $("#year_x2_1").html(MonthArr[x_arr[0] - 1]);
            $("#year_x2_2").html(MonthArr[x_arr[1] - 1]);
        }
        if (x_arr.length == 3) {
            $("#chart_year_x").css({ display: "none" });
            $("#chart_year_x2").css({ display: "none" });
            $("#chart_year_x3").css({ display: "block" });
            $("#chart_year_x4").css({ display: "none" });
            $("#year_x3_1").html(MonthArr[x_arr[0] - 1]);
            $("#year_x3_2").html(MonthArr[x_arr[1] - 1]);
            $("#year_x3_3").html(MonthArr[x_arr[2] - 1]);
        }
        if (x_arr.length >= 4) {
            $("#chart_year_x").css({ display: "none" });
            $("#chart_year_x2").css({ display: "none" });
            $("#chart_year_x3").css({ display: "none" });
            $("#chart_year_x4").css({ display: "block" });
            $("#year_x4_1").html(MonthArr[x_arr[0] - 1]);
            $("#year_x4_2").html(MonthArr[x_arr[1] - 1]);
            $("#year_x4_3").html(MonthArr[x_arr[2] - 1]);
            $("#year_x4_4").html(MonthArr[x_arr[3] - 1]);
            if (x_arr.length == 5 || x_arr.length == 6) {
                $("#year_x4_1").html(MonthArr[x_arr[0] - 1]);
                $("#year_x4_2").html(MonthArr[x_arr[2] - 1]);
                $("#year_x4_3").html(MonthArr[x_arr[4] - 1]);
                $("#year_x4_4").html(MonthArr[x_arr[x_arr.length - 1] - 1]);
            }
            if (x_arr.length == 7 || x_arr.length == 8) {
                $("#year_x4_1").html(MonthArr[x_arr[0] - 1]);
                $("#year_x4_2").html(MonthArr[x_arr[2] - 1]);
                $("#year_x4_3").html(MonthArr[x_arr[4] - 1]);
                $("#year_x4_4").html(MonthArr[x_arr[6] - 1]);
            }
            if (x_arr.length == 10) {
                $("#year_x4_1").html(MonthArr[x_arr[0] - 1]);
                $("#year_x4_2").html(MonthArr[x_arr[3] - 1]);
                $("#year_x4_3").html(MonthArr[x_arr[6] - 1]);
                $("#year_x4_4").html(MonthArr[x_arr[9] - 1]);
            }
            if (x_arr.length == 11) {
                $("#year_x4_1").html(MonthArr[x_arr[0] - 1]);
                $("#year_x4_2").html(MonthArr[x_arr[4] - 1]);
                $("#year_x4_3").html(MonthArr[x_arr[8] - 1]);
                $("#year_x4_4").html(MonthArr[x_arr[10] - 1]);
            }
            if (x_arr.length == 12) {
                $("#year_x4_1").html(MonthArr[x_arr[0] - 1]);
                $("#year_x4_2").html(MonthArr[x_arr[4] - 1]);
                $("#year_x4_3").html(MonthArr[x_arr[8] - 1]);
                $("#year_x4_4").html(MonthArr[x_arr[11] - 1]);
            }
            if (x_arr.length == 13) {
                $("#year_x4_1").html(MonthArr[x_arr[0] - 1]);
                $("#year_x4_2").html(MonthArr[x_arr[4] - 1]);
                $("#year_x4_3").html(MonthArr[x_arr[8] - 1]);
                $("#year_x4_4").html(MonthArr[x_arr[12] - 1]);
            }
        }
        // if (x_arr.length == 5 || x_arr.length == 6 || x_arr.length == 9) {
        //   $('#chart_year_x').css({ display: 'none' })
        //   $('#chart_year_x2').css({ display: 'none' })
        //   $('#chart_year_x3').css({ display: 'block' })
        //   $('#chart_year_x4').css({ display: 'none' })
        //   $('#year_x3_1').html(MonthArr[x_arr[0] - 1])
        //   $('#year_x3_2').html(MonthArr[x_arr[2] - 1])
        //   $('#year_x3_3').html(MonthArr[x_arr[4] - 1])
        //   if (x_arr.length == 9) {
        //     $('#year_x3_1').html(MonthArr[x_arr[0] - 1])
        //     $('#year_x3_2').html(MonthArr[x_arr[4] - 1])
        //     $('#year_x3_3').html(MonthArr[x_arr[8] - 1])
        //   }
        // }
    }

    //不同模块处理
    if (model == "total") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_year_total = echarts.init(
            document.getElementById("chart_year_total")
        );
        let s = Math.round(avg / days); //总平均
        let a1 = Math.round(avg1 / days); //深睡平均
        let a2 = Math.round(avg2 / days); //浅睡平均
        let a3 = Math.round(avg3 / days); //清醒平均
        let mytemp1 = reRender(value1);
        let mytemp2 = reRender(value2);
        let mytemp3 = reRender(value3);
        let value1_0 = mytemp1.hasdata;
        let value1_1 = mytemp1.nodata;
        let value2_0 = mytemp2.hasdata;
        let value2_1 = mytemp2.nodata;
        let value3_0 = mytemp3.hasdata;
        let value3_1 = mytemp3.nodata;
        drawweekchart(
            chart_year_total,
            value1_0,
            value1_1,
            value2_0,
            value2_1,
            value3_0,
            value3_1,
            value0,
            max
        );
        let sleep_duration = Math.round(
            sum.avg_deep_sleep_duration + sum.avg_shallow_sleep_duration
        );
        if (sleep_duration > 60) {
            let b = Math.floor(sleep_duration / 60);
            let c = sleep_duration % 60;
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = sleep_duration % 60;
            $(".title-text-week3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a1 > 60) {
            let b = Math.floor(a1 / 60);
            let c = a1 % 60;
            $(".deep-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a1.deep_sleep_duration % 60;
            $(".deep-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a2 > 60) {
            let b = Math.floor(a2 / 60);
            let c = a2 % 60;
            $(".light-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a2 % 60;
            $(".light-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
        if (a3 > 60) {
            let b = Math.floor(a3 / 60);
            let c = a3 % 60;
            $(".awake-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = a3 % 60;
            $(".awake-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
        }
    } else if (model == "deep") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(111, 148, 216, 1)";
        let color2 = "rgba(111, 148, 216, 1)";
        let color3 = "rgba(111, 148, 216, 0.2)";
        let color4 = "rgba(111, 148, 216, 0.89)";
        let mytemp1 = reRender(value1);
        let value1_0 = mytemp1.hasdata;
        let value1_1 = mytemp1.nodata;
        drawmonthchart(
            chart_year,
            value1_0,
            value1_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
        let sleep_duration = Math.round(sum.avg_deep_sleep_duration);
        if (sleep_duration > 60) {
            let b = Math.floor(sleep_duration / 60);
            let c = sleep_duration % 60;
            $("#deep-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = sleep_duration % 60;
            $("#deep-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        }
    } else if (model == "light") {
        $(".subtext-week").html(languageData.lab_7);
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(38, 186, 171, 1)";
        let color2 = "rgba(38, 186, 171, 1)";
        let color3 = "rgba(38, 186, 171, 0.2)";
        let color4 = "rgba(38, 186, 171, 0.9)";
        let mytemp1 = reRender(value1);
        let value2_0 = mytemp1.hasdata;
        let value2_1 = mytemp1.nodata;
        drawmonthchart(
            chart_year,
            value2_0,
            value2_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
        let sleep_duration = Math.round(sum.avg_shallow_sleep_duration);
        if (sleep_duration > 60) {
            let b = Math.floor(sleep_duration / 60);
            let c = sleep_duration % 60;
            $("#deep-data3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        } else {
            let c = sleep_duration % 60;
            $("#deep-data3").html(
                0 + " " + languageData.lab_13 + " " + c + " min"
            );
            $(".title-text-week3").html(
                b + " " + languageData.lab_13 + " " + c + " min"
            );
        }
    } else if (model == "heart") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(219, 74, 106, 1)";
        let color2 = "rgba(219, 74, 106, 1)";
        let color3 = "rgba(219, 74, 106, 0.2)";
        let date = [];
        let sum = 0;
        let days = 0;
        // let arr_1 = yearData.date;
        // for (let i = 0; i < arr_1.length; i++) {
        //   date.push(arr_1[i].substring(5, 10).replace(/-/g, '/'));
        // }
        if (yearData.avg_heart_rate != 0) {
            $(".title-text-week3").html(yearData.avg_heart_rate + " bpm");
        } else {
            $(".title-text-week3").html("0 bpm");
        }
        let color4 = "rgba(219, 74, 106, 0.9)";
        let mytemp1 = reRender(yearData.heart_rate_stage);
        let heart_0 = mytemp1.hasdata;
        let heart_1 = mytemp1.nodata;
        drawmonthchart(
            chart_year,
            heart_0,
            heart_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "breath") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(111, 148, 216, 1)";
        let color2 = "rgba(111, 148, 216, 1)";
        let color3 = "rgba(111, 148, 216, 0.2)";
        let breath = [];
        let sum = 0;
        let days = 0;
        let arr_1 = yearData.avg_breath_rate;
        breath = yearData.breath_rate_stage;
        $(".title-text-week3").html(arr_1 + " " + languageData.lab_14);
        let color4 = "rgba(111, 148, 216, 0.9)";
        let mytemp1 = reRender(breath);
        let breath_0 = mytemp1.hasdata;
        let breath_1 = mytemp1.nodata;
        drawmonthchart(
            chart_year,
            breath_0,
            breath_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "move") {
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(242, 186, 91, 1)";
        let color2 = "rgba(242, 186, 91, 0.8)";
        let color3 = "rgba(242, 186, 91, 0.2)";
        let move = yearData.twitch_times_stage_year;
        let sum = 0;
        let days = 0;
        for (let i = 0; i < move.length; i++) {
            if (move[i] != "-") {
                sum = sum + move[i];
                days = days + 1;
            }
        }
        if (sum != 1) {
            $(".title-text-week3").html(
                Math.round(sum / days) + " " + languageData.lab_10
            );
        } else {
            $(".title-text-week3").html(
                "1 " + languageData.lab_10.slice(0, -1)
            );
        }
        $(".subtext-week").html(languageData.lab_7);
        let color4 = "rgba(242, 186, 91, 0.9)";
        let mytemp1 = reRender(move);
        let move_0 = mytemp1.hasdata;
        let move_1 = mytemp1.nodata;
        drawmonthchart(
            chart_year,
            move_0,
            move_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "hrv") {
        $(".subtext-week").html(languageData.lab_8);
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(181, 41, 72, 1)";
        let color2 = "rgba(181, 41, 72, 1)";
        let color3 = "rgba(181, 41, 72, 0.2)";
        let avg3 = 0;
        let rmssd = yearData.rmssd_stage;
        let days = 0;
        for (let i = 0; i < rmssd.length; i++) {
            if (rmssd[i] != "-") {
                days = days + 1;
                avg3 = avg3 + rmssd[i];
            }
        }

        // $('.hrv_month_num3 ').html(Math.round(avg3 / days));
        if (avg3 != 0) {
            $(".title-text-week3").html(Math.round(avg3 / days) + " ms");
        } else {
            $(".title-text-week3").html("0 ms");
        }
        let color4 = "rgba(181, 41, 72, 0.2)";
        let mytemp1 = reRender(rmssd);
        let rmssd_0 = mytemp1.hasdata;
        let rmssd_1 = mytemp1.nodata;
        drawmonthchart(
            chart_year,
            rmssd_0,
            rmssd_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
        $(".hrv_week_daterow").html(
            languageData.lab_4 + "," + lab_0[0] + "-" + lab_1[1]
        );
    } else if (model == "snore") {
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(38, 186, 171, 1)";
        let color2 = "rgba(38, 186, 171, 0.8)";
        let color3 = "rgba(38, 186, 171, 0.2)";
        let snore = yearData.snore_times_stage;
        let avg = 0;
        let avg2 = 0;
        let days = 0;
        let sum0 = yearData.snore_times_stage;
        let sum = yearData.anti_snore_times_stage;
        for (let i = 0; i < sum.length; i++) {
            if (sum[i] != "-") {
                days = days + 1;
                avg = avg + sum[i];
            }
        }
        for (let i = 0; i < sum0.length; i++) {
            if (sum0[i] != "-") {
                avg2 = avg2 + sum0[i];
            }
        }
        if (avg2 != 1) {
            $(".title-text-week3").html(
                Math.round(avg2 / sum0.length) + " " + languageData.lab_12
            );
        } else {
            $(".title-text-week3").html("1 " + languageData.lab_11);
        }
        if (avg != 1) {
            $("#top-text4").html(
                Math.round(avg / days) + " " + languageData.snore_text
            );
        } else {
            $("#top-text4").html("1 " + languageData.snore_text1);
        }
        $(".subtext-week").html(languageData.lab_7);
        let color4 = "rgba(38, 186, 171, 0.88)";
        let mytemp1 = reRender(snore);
        let snore_0 = mytemp1.hasdata;
        let snore_1 = mytemp1.nodata;
        console.log("snore==>", snore);
        drawmonthchart(
            chart_year,
            snore_0,
            snore_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    } else if (model == "outbed") {
        var chart_year = echarts.init(
            document.getElementById("chart_year")
        );
        let color = "rgba(240, 92, 73, 1)";
        let color2 = "rgba(240, 92, 73, 1)";
        let color3 = "rgba(240, 92, 73, 0.2)";
        let temp = yearData.left_bed_times;
        let temp2 = yearData.left_bed_time;
        if (temp2 != 1) {
            $(".title-text-week3").html(temp2 + " times");
        } else {
            $(".title-text-week3").html(temp2 + " time");
        }
        $(".subtext-week").html("Nightly average");
        let color4 = "rgba(240, 92, 73, 0.9)";
        let mytemp1 = reRender(temp);
        let temp_0 = mytemp1.hasdata;
        let temp_1 = mytemp1.nodata;
        drawmonthchart(
            chart_year,
            temp_0,
            temp_1,
            value0,
            color2,
            color3,
            color3,
            color4
        );
    }
}

